1XSetDeviceMode(3)                 X FUNCTIONS                XSetDeviceMode(3)
2
3
4

NAME

6       XSetDeviceMode - change the mode of a device
7

SYNTAX

9       XSetDeviceMode(display, device, mode)
10             Display *display;
11             XDevice *device;
12             int _mode;
13

ARGUMENTS

15       display     Specifies the connection to the X server.
16
17       device      Specifies the device whose mode is to be changed.
18
19       mode        Specifies the mode.  You can pass Absolute , or Relative.
20

DESCRIPTION

22       The  XSetDeviceMode request changes the mode of an input device that is
23       capable of reporting either absolute positional information or relative
24       motion  information.   Not  all  input devices are capable of reporting
25       motion data, and not all are capable of changing modes from Absolute to
26       Relative.
27
28       XSetDeviceMode can generate a BadDevice or BadMode error.
29

DIAGNOSTICS

31       BadDevice   An invalid device was specified.  The specified device does
32                   not exist or has not been opened by this client via  XOpen‐
33                   InputDevice.   This  error  may  also  occur  if some other
34                   client has caused the specified device to become the X key‐
35                   board  or X pointer device via the XChangeKeyboardDevice or
36                   XChangePointerDevice requests.
37
38       BadMatch    This error may occur if an XSetDeviceMode request  is  made
39                   specifying  a  device  that has no valuators and reports no
40                   axes of motion.
41
42       BadMode     An invalid mode was specified.  This  error  will  also  be
43                   returned if the specified device is not capable of support‐
44                   ing the XSetDeviceMode request.
45

SEE ALSO

47       Programming with Xlib
48
49
50
51X Version 11                      libXi 1.1.1                XSetDeviceMode(3)
Impressum