XGetPointerMapping()XGetPointerMapping()Name
XGetPointerMapping – get the pointer button mapping.
Synopsis
int XGetPointerMapping(display, map_return, nmap)
Display *display;
unsigned char map_return[];
int nmap;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
map_return
Returns the mapping list. Array begins with map_return[].
nmap Specifies the number of items in mapping list.
Returns
The number of elements in the pointer list.
DescriptionXGetPointerMapping() returns the current mapping of the pointer but‐
tons. Information is returned in both the arguments and the function's
return value. map_return is an array of the numbers of the buttons as
they are currently mapped. Elements of the list are indexed starting
from 1. The nominal mapping for a pointer is the identity mapping:
map_return[i]=i+1. If map[2]=2, it means that the third physical but‐
ton triggers the second logical button.
nmap indicates the desired number of button mappings.
The return value of the function is the actual number of elements in
the pointer list, which may be greater or less than nmap.
See AlsoXChangeActivePointerGrab(), XChangePointerControl(), XGetPointerCon‐
trol(), XGrabPointer(), XQueryPointer(), XSetPointerMapping(), XUngrab‐
Pointer(), XWarpPointer().
Xlib - Pointer XGetPointerMapping()