GDK Reference ManualGdkDeviceKey *keys a pointer to an array of GdkDeviceKey structures which describe what key press events are generated for each macro button. struct GdkDeviceKey
The GdkDeviceKey structure contains information about the mapping of one device macro button onto a normal X key event. It has the following fields: guint keyval the keyval to generate when the macro button is pressed. If this is 0, no keypress will be generated. GdkModifierType modifiers the modifiers set for the generated key event.
Turns extension events on or off for a particular window, and specifies the event mask for extension events. window : a GdkWindow. mask : the event mask mode : the type of extension events that are desired. enum GdkExtensionMode
An enumeration used to specify which extension events are desired for a particular widget. GDK_EXTENSION_EVENTS_NONE no extension events are desired. GDK_EXTENSION_EVENTS_ALL all extension events are desired. GDK_EXTENSION_EVENTS_CURSOR extension events are desired only if a cursor will be displayed for the device.
Sets the source type for a device. deviceid : the device to configure source : the new source type. enum GdkInputSource
An enumeration describing the type of an input device in general terms. GDK_SOURCE_MOUSE the device is a mouse. (This will be reported for the core pointer, even if it is something else, such as a trackball.) GDK_SOURCE_PEN the device is a stylus of a graphics tablet or similar device. GDK_SOURCE_ERASER the device is an eraser. Typically, this would be the other end of a stylus on a graphics tablet. GDK_SOURCE_CURSOR the device is a graphics tablet "puck" or similar device.
Enables or disables a device, and determines how the device maps onto the screen. deviceid : the device to configure. mode : the new mode. Returns : TRUE if the device supports the given mode, otherwise FALSE and the device's mode is unchanged. enum GdkInputMode
An enumeration that describes the mode of an input device. GDK_MODE_DISABLED the device is disabled and will not report any events. GDK_MODE_SCREEN the device is enabled. The device's coordinate space maps to the entire screen. GDK_MODE_WINDOW the device is enabled. The device's coordinate space is mapped to a single window. The manner in which this window is chosen is undefined, but it will typically be the same way in which the focus window for key events is determined.
Sets the mapping of the axes (valuators) of a device onto the predefined valuator types that GTK+ understands. deviceid : the device to configure. axes : an array of GdkAxisUse. This length of this array must match the number of axes for the device. enum GdkAxisUse
|