public class KeyboardDevice extends Object implements org.j3d.device.input.TrackerDevice, KeyListener
FUNC_BUTTON_1, FUNC_BUTTON_2, FUNC_BUTTON_3, FUNC_BUTTON_4, FUNC_L1_BUTTON, FUNC_LEFT_HAT, FUNC_LEFT_STICK_X, FUNC_LEFT_STICK_Y, FUNC_LEFT_STICK_Z, FUNC_NAV_X, FUNC_NAV_Y, FUNC_NAV_Y_CENTERED, FUNC_NONE, FUNC_ORIENT_X, FUNC_ORIENT_Y, FUNC_R1_BUTTON, FUNC_RIGHT_STICK_X, FUNC_RIGHT_STICK_Y, FUNC_START_BUTTON, FUNC_THROTTLE, FUNC_VIEWPOINT_NEXT, FUNC_WHEEL_X| Constructor and Description |
|---|
KeyboardDevice(String name)
Construct a new keyboard device with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name of this device.
|
int |
getTrackerCount()
Get a count of the number of trackers this device has.
|
org.j3d.device.input.Tracker[] |
getTrackers() |
void |
keyPressed(KeyEvent evt)
Notification of a key press event.
|
void |
keyReleased(KeyEvent evt)
Notification of a key release event.
|
void |
keyTyped(KeyEvent evt)
Notification of a key type (press and release) event.
|
public KeyboardDevice(String name)
name - The name string to associate with this devicepublic String getName()
getName in interface org.j3d.device.input.InputDevicepublic org.j3d.device.input.Tracker[] getTrackers()
getTrackers in interface org.j3d.device.input.TrackerDevicepublic int getTrackerCount()
getTrackerCount in interface org.j3d.device.input.TrackerDevicepublic void keyPressed(KeyEvent evt)
keyPressed in interface KeyListenerevt - The key event that caused this method to be calledpublic void keyReleased(KeyEvent evt)
keyReleased in interface KeyListenerevt - The key event that caused this method to be calledpublic void keyTyped(KeyEvent evt)
keyTyped in interface KeyListenerevt - The key event that caused this method to be called
Copyright © 2001 - 2015 j3d.org