XGetPointerMapping
Syntax
int XGetPointerMapping(display, map_return, nmap)
Display *display;
unsigned char map_return[];
int nmap;
Arguments
display
| Specifies the connection to the X server.
|
map_return
| Returns the mapping list.
|
nmap
| Specifies the number of items in the mapping list.
|
Description
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.
See also
XChangeKeyboardControl(),
XChangeKeyboardMapping(),
XSetPointerMapping(),
"
Keyboard and Pointer Settings".
Christophe Tronche, [email protected]