|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gdk.Device
In addition to the normal keyboard and mouse input devices, GTK+ also contains support for extended input devices. In particular, this support is targeted at graphics tablets. Graphics tablets typically return sub-pixel positioning information and possibly information about the pressure and tilt of the stylus. Under X, the support for extended devices is done through the XInput extension. This class represents a generic device, allowing the programmer to configure various aspects of each device.
Constructor Summary | |
Device(int handle)
|
Method Summary | |
static Device |
getCorePointer()
Returns the device for the core pointer. |
static List |
getDevicesList()
|
InputMode |
getMode()
Returns the mode of an input device. |
java.lang.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. |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Device(int handle)
Method Detail |
public java.lang.String getName()
public InputSource getSource()
public InputMode getMode()
public boolean hasCursor()
public static List getDevicesList()
public void setSource(InputSource source)
public void setMode(InputMode mode)
public void setKeyValue(int btnIndex, int keyVal, ModifierType modifier)
public void setAxisUse(int axisIndex, AxisUse use)
public static Device getCorePointer()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |