2 .\" Title: xsetdevicemode
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: [FIXME: manual]
7 .\" Source: [FIXME: source]
10 .TH "XSETDEVICEMODE" "libmansuffix" "09/23/2011" "[FIXME: source]" "[FIXME: manual]"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 XSetDeviceMode \- change the mode of a device
35 #include <X11/extensions/XInput\&.h>
39 XSetDeviceMode( Display *display,
46 Specifies the connection to the X server\&.
51 Specifies the device whose mode is to be changed\&.
56 Specifies the mode\&.You can pass Absolute,or Relative\&.
64 The XSetDeviceMode request changes the mode of an input device
65 that is capable of reporting either absolute positional
66 information or relative motion information\&. Not all input
67 devices are capable of reporting motion data, and not all are
68 capable of changing modes from Absolute to Relative\&.
78 XSetDeviceMode can generate a BadDevice or BadMode error\&.
90 An invalid device was specified\&. The specified device
91 does not exist or has not been opened by this client via
92 XOpenInputDevice\&. This error may also occur if some
93 other client has caused the specified device to become
94 the X keyboard or X pointer device via the
95 XChangeKeyboardDevice or XChangePointerDevice requests\&.
106 This error may occur if an XSetDeviceMode request is
107 made specifying a device that has no valuators and
108 reports no axes of motion\&.
119 An invalid mode was specified\&. This error will also be
120 returned if the specified device is not capable of
121 supporting the XSetDeviceMode request\&.