Lines Matching +full:long +full:- +full:press +full:- +full:mode
1 .. _joystick-api:
7 :Author: Ragnar Hojland Espinosa <ragnar@macula.net> - 7 Aug 1998
18 driver now reports only any changes of its state. See joystick-api.txt,
21 nonblocking mode, and supports select() calls.
38 By default, the device is opened in blocking mode::
65 -------------
86 ---------------
108 --------------
110 For an axis, ``value`` is a signed integer between -32767 and +32767
115 For a button, ``value`` for a press button event is 1 and for a release
141 -------------
152 If you open the device in blocking mode, a read will block (that is,
155 admittedly, a long time;)
161 b) open the device in non-blocking mode (O_NONBLOCK)
165 ----------
167 If read returns -1 when reading in O_NONBLOCK mode, this isn't
170 all events on the queue (that is, until you get a -1).
200 the driver will switch to startup mode and next time you read it,
219 In this case, read would return -1 if the queue was empty, or some
245 -------------
247 JSIOGCVERSION is a good way to check in run-time whether the running
249 IOCTL will fail. For a compile-time decision, you can test the
257 ----------
259 JSIOCGNAME(len) allows you to get the name string of the joystick - the same
262 possible overrun should the name be too long::
271 -------------
331 except that the values are non-negative. The 1.2.8+ drivers use a