1XSetPointerMapping(3)           XLIB FUNCTIONS           XSetPointerMapping(3)
2
3
4

NAME

6       XSetPointerMapping, XGetPointerMapping - manipulate pointer settings
7

SYNTAX

9       int XSetPointerMapping(Display *display, unsigned char map[], int
10              nmap);
11
12       int XGetPointerMapping(Display *display, unsigned char map_return[],
13              int nmap);
14

ARGUMENTS

16       display   Specifies the connection to the X server.
17
18       map       Specifies the mapping list.
19
20       map_return
21                 Returns the mapping list.
22
23       nmap      Specifies the number of items in the mapping list.
24

DESCRIPTION

26       The XSetPointerMapping function sets the mapping of the pointer.  If it
27       succeeds, the X server generates a MappingNotify event, and XSetPoint‐
28       erMapping returns MappingSuccess.  Element map[i] defines the logical
29       button number for the physical button i+1.  The length of the list must
30       be the same as XGetPointerMapping would return, or a BadValue error
31       results.  A zero element disables a button, and elements are not
32       restricted in value by the number of physical buttons.  However, no two
33       elements can have the same nonzero value, or a BadValue error results.
34       If any of the buttons to be altered are logically in the down state,
35       XSetPointerMapping returns MappingBusy, and the mapping is not changed.
36
37       XSetPointerMapping can generate a BadValue error.
38
39       The XGetPointerMapping function returns the current mapping of the
40       pointer.  Pointer buttons are numbered starting from one.  XGetPoint‐
41       erMapping returns the number of physical buttons actually on the
42       pointer.  The nominal mapping for a pointer is map[i]=i+1.  The nmap
43       argument specifies the length of the array where the pointer mapping is
44       returned, and only the first nmap elements are returned in map_return.
45

DIAGNOSTICS

47       BadValue  Some numeric value falls outside the range of values accepted
48                 by the request.  Unless a specific range is specified for an
49                 argument, the full range defined by the argument's type is
50                 accepted.  Any argument defined as a set of alternatives can
51                 generate this error.
52

SEE ALSO

54       XChangeKeyboardControl(3), XChangeKeyboardMapping(3)
55       Xlib - C Language X Interface
56
57
58
59X Version 11                     libX11 1.6.7            XSetPointerMapping(3)
Impressum