org.gnu.gdk
public class Device extends GObject
Constructor Summary | |
---|---|
Device(Handle handle) |
Method Summary | |
---|---|
static Device | getCorePointer()
Returns the device for the core pointer. |
static List | getDevices()
Returns the list of available input devices for the default display.
|
static List | getDevicesList() |
InputMode | getMode()
Returns the mode of an input device. |
String | getName()
Returns the name of this device. |
InputSource | getSource()
Returns the type of this device. |
boolean | hasCursor()
TRUE if the X pointer follows device motion. |
void | setAxisUse(int axisIndex, AxisUse use)
Specifies how an axis of a device is used. |
void | setKeyValue(int btnIndex, int keyVal, ModifierType modifier)
Specifies the X key event to generate when a macro button of a device is
pressed. |
void | setMode(InputMode mode)
Sets a the mode of an input device. |
void | setSource(InputSource source)
Sets the source type for an input device. |
Returns: A java.util.List containing the available input Device instances.
Deprecated: Use Device instead.