To get the modifier mapping of an extended input device, use
XHPGetDeviceModifierMapping.
XModifierKeymap *XHPGetDeviceModifierMapping(display, deviceid) Display *display; XID deviceid;
|
Title not available (Getting the Modifier Mapping of Extended Input Devices)
- display
Specifies the connection to the X server.
- deviceid
Specifies the ID of the device whose modifier map
is requested.
XHPGetDeviceModifierMapping
allows a client program to read and use the keys being used as modifiers
for an extended input device.
XHPGetDeviceModifierMapping
returns a newly created XModifierKeymap
structure that contains the keys being used as modifiers for the
specified device. The structure should be freed after use by calling
XFreeModifiermap.
If only zero values appear in the set for any modifier, that modifier
is disabled.
XHPGetDeviceModifierMapping
can generate a BadDevice
error.