public class DeviceKeyboard extends Object implements RawDevice, KeyListener, AWTEventListener, PollingDevice
| Constructor and Description |
|---|
DeviceKeyboard() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
eventDispatched(AWTEvent event) |
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 |
poll(long when)
Perform polling for the device in this method.
|
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 void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic ToolEvent mapRawDevice(String rawDeviceName, InputSlot inputDevice)
mapRawDevice in interface RawDevicepublic void setEventQueue(ToolEventQueue queue)
RawDevicesetEventQueue in interface RawDevicepublic void poll(long when)
PollingDevicepoll in interface PollingDevicepublic void eventDispatched(AWTEvent event)
eventDispatched in interface AWTEventListener