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.
Description
XGetPointerMapping() returns the current mapping of the pointer buttons. 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 start-
ing 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
button 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 Also
XChangeActivePointerGrab(), XChangePointerControl(), XGetPointerControl(), XGrabPointer(), XQueryPointer(), XSetPointerMapping(), XUngrab-
Pointer(), XWarpPointer().
Xlib - Pointer XGetPointerMapping()