XSetPointerMapping(3) | Library Functions Manual | XSetPointerMapping(3) |
int XSetPointerMapping(Display *display, unsigned char map[], int nmap);
int XGetPointerMapping(Display *display, unsigned char map_return[], int nmap);
XSetPointerMapping can generate a BadValue error.
The XGetPointerMapping function returns the current mapping of the pointer. Pointer buttons are numbered starting from one. XGetPointerMapping returns the number of physical buttons actually on the pointer. The nominal mapping for a pointer is map[i]=i+1. The nmap argument specifies the length of the array where the pointer mapping is returned, and only the first nmap elements are returned in map_return.
X Version 11 | XLIB FUNCTIONS |