public class DeviceOldKeyboard extends Object implements RawDevice, KeyListener
| Constructor and Description |
|---|
DeviceOldKeyboard() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
String |
getName() |
void |
initialize(Viewer viewer,
Map<String,Object> config)
Basically the actual constructor.
|
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
ToolEvent |
mapRawDevice(String rawDeviceName,
InputSlot inputDevice) |
void |
setEventQueue(ToolEventQueue queue)
Here the ToolEventQueue that has a thread running is attached to the device.
|
String |
toString() |
public void initialize(Viewer viewer, Map<String,Object> config)
RawDeviceinitialize in interface RawDevicepublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic ToolEvent mapRawDevice(String rawDeviceName, InputSlot inputDevice)
mapRawDevice in interface RawDevicepublic void setEventQueue(ToolEventQueue queue)
RawDevicesetEventQueue in interface RawDevicepublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListener