XSetDeviceButtonMapping(3X11) | X FUNCTIONS | XSetDeviceButtonMapping(3X11) |
int XSetDeviceButtonMapping(Display *display, XDevice * device, unsigned char map[], int nmap);
int XGetDeviceButtonMapping(Display *display, XDevice * device, unsigned char map_return[], int nmap);
XSetDeviceButtonMapping can generate BadDevice, BadMatch, and BadValue errors.
The XGetDeviceButtonMapping request returns the current mapping of the specified device. Buttons are numbered starting from one. XGetDeviceButtonMapping returns the number of physical buttons actually on the device. The nominal mapping for a device is map[i]=i+1. The nmap argument specifies the length of the array where the device mapping is returned, and only the first nmap elements are returned in map_return.
XGetDeviceButtonMapping can generate BadDevice or BadMatch errors.
XFree86 | 4.5.0 |