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)
RawDevice
initialize
in interface RawDevice
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public ToolEvent mapRawDevice(String rawDeviceName, InputSlot inputDevice)
mapRawDevice
in interface RawDevice
public void setEventQueue(ToolEventQueue queue)
RawDevice
setEventQueue
in interface RawDevice
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener