org.gnu.gdk
public class Device extends GObject
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may exist in java-gnome 4.0; look out for
org.gnome.gdk.Device
.
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. |
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the device for the core pointer.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the list of available input devices for the default display.Returns: A java.util.List containing the available input Device instances.
Deprecated: Use Device instead. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the mode of an input device.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the name of this device.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the type of this device.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
TRUE if the X pointer follows device motion.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Specifies how an axis of a device is used.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Specifies the X key event to generate when a macro button of a device is pressed.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets a the mode of an input device. The mode controls if the device is active and whether the device's range is mapped to the entire screen or to a single window.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the source type for an input device.