XGETDEVICEKEYMAPPING - Online Linux Manual PageSection : 3
Updated : 09/15/2021
Source :  ​
Note :  ​

NAMEXGetDeviceKeyMapping, XChangeDeviceKeyMapping − query or change device key mappings

SYNOPSIS#include <X11/extensions/XInput​.h>KeySym *XGetDeviceKeyMapping( Display *display, XDevice *device, KeyCode first_keycode, int keycode_count, int *keysyms_per_keycode_return); display Specifies the connection to the X server​.device Specifies the device whose key mapping is to be queried or modified​.first_keycode Specifies the first KeyCode to be returned​.keycode_count Specifies the number of KeyCodes to be returned or modified​.keysyms_per_keycode Specifies the number of KeySyms per KeyCode​.keysyms_per_keycode_return Specifies the address of a variable into which the number of KeySyms per KeyCode will be returned​.keysyms Specifies the address of an array of KeySyms​.

DESCRIPTIONFor the specified device, the XGetDeviceKeyMapping request returns the symbols for the specified number of KeyCodes starting with first_keycode​. The value specified in first_keycode must be greater than or equal to min_keycode as returned by XListInputDevices, or a BadValue error results​. In addition, the following expression must be less than or equal to max_keycode as returned by XListInputDevices:first_keycode + keycode_count − 1If this is not the case, a BadValue error results​. The number of elements in the KeySyms list is:keycode_count * keysyms_per_keycode_returnKeySym number N, counting from zero, for KeyCode K has the following index in the list, counting from zero: (K − first_code) * keysyms_per_code_return + NThe X server arbitrarily chooses the keysyms_per_keycode_return value to be large enough to report all requested symbols​. A special KeySym value of NoSymbol is used to fill in unused elements for individual KeyCodes​. To free the storage returned by XGetDeviceKeyMapping, use XFree​.If the specified device does not support input class keys, a BadMatch error will result​.XGetDeviceKeyMapping can generate a BadDevice, BadMatch, or BadValue error​.For the specified device, the XChangeDeviceKeyMapping request defines the symbols for the specified number of KeyCodes starting with first_keycode​. The symbols for KeyCodes outside this range remain unchanged​. The number of elements in keysyms must be:num_codes * keysyms_per_keycodeThe specified first_keycode must be greater than or equal to min_keycode returned by XListInputDevices, or a BadValue error results​. In addition, the following expression must be less than or equal to max_keycode as returned by XListInputDevices, or a BadValue error results:first_keycode + num_codes − 1KeySym number N, counting from zero, for KeyCode K has the following index in keysyms, counting from zero:(K − first_keycode) * keysyms_per_keycode + NThe specified keysyms_per_keycode can be chosen arbitrarily by the client to be large enough to hold all desired symbols​. A special KeySym value of NoSymbol should be used to fill in unused elements for individual KeyCodes​. It is legal for NoSymbol to appear in nontrailing positions of the effective list for a KeyCode​. XChangeDeviceKeyMapping generates a DeviceMappingNotify event that is sent to all clients that have selected that type of event​.There is no requirement that the X server interpret this mapping​. It is merely stored for reading and writing by clients​.If the specified device does not support input class keys, a BadMatch error results​.XChangeDeviceKeyMapping can generate a BadDevice, BadMatch, BadAlloc, or BadValue error​.

DIAGNOSTICSBadDevice An invalid device was specified​. The specified device does not exist or has not been opened by this client via XOpenInputDevice​. This error may also occur if the specified device is the X keyboard or X pointer device​.BadMatch This error may occur if an XGetDeviceKeyMapping or XChangeDeviceKeyMapping request was made specifying a device that has no keys​.BadValue Some numeric value falls outside the range of values accepted by the request​. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted​. Any argument defined as a set of alternatives can generate this error​.BadAlloc The server failed to allocate the requested resource or server memory​.

SEE ALSOXSetDeviceButtonMapping(3), XSetDeviceModifierMapping(__3_)
0
Johanes Gumabo
Data Size   :   9,857 byte
man-XGetDeviceKeyMapping.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 236,933
Visitor ID   :     :  
Visitor IP   :   3.138.134.163   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.