joystick.txt 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. Linux Joystick driver v2.0.0
  2. (c) 1996-2000 Vojtech Pavlik <vojtech@ucw.cz>
  3. Sponsored by SuSE
  4. ----------------------------------------------------------------------------
  5. 0. Disclaimer
  6. ~~~~~~~~~~~~~
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the Free
  9. Software Foundation; either version 2 of the License, or (at your option)
  10. any later version.
  11. This program is distributed in the hope that it will be useful, but
  12. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  13. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  14. more details.
  15. You should have received a copy of the GNU General Public License along
  16. with this program; if not, write to the Free Software Foundation, Inc., 59
  17. Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. Should you need to contact me, the author, you can do so either by e-mail
  19. - mail your message to <vojtech@ucw.cz>, or by paper mail: Vojtech Pavlik,
  20. Simunkova 1594, Prague 8, 182 00 Czech Republic
  21. For your convenience, the GNU General Public License version 2 is included
  22. in the package: See the file COPYING.
  23. 1. Intro
  24. ~~~~~~~~
  25. The joystick driver for Linux provides support for a variety of joysticks
  26. and similar devices. It is based on a larger project aiming to support all
  27. input devices in Linux.
  28. Should you encounter any problems while using the driver, or joysticks
  29. this driver can't make complete use of, I'm very interested in hearing about
  30. them. Bug reports and success stories are also welcome.
  31. The input project website is at:
  32. http://atrey.karlin.mff.cuni.cz/~vojtech/input/
  33. There is also a mailing list for the driver at:
  34. listproc@atrey.karlin.mff.cuni.cz
  35. send "subscribe linux-joystick Your Name" to subscribe to it.
  36. 2. Usage
  37. ~~~~~~~~
  38. For basic usage you just choose the right options in kernel config and
  39. you should be set.
  40. 2.1 inpututils
  41. ~~~~~~~~~~~~~~
  42. For testing and other purposes (for example serial devices), a set of
  43. utilities is available at the abovementioned website. I suggest you download
  44. and install it before going on.
  45. 2.2 Device nodes
  46. ~~~~~~~~~~~~~~~~
  47. For applications to be able to use the joysticks,
  48. you'll have to manually create these nodes in /dev:
  49. cd /dev
  50. rm js*
  51. mkdir input
  52. mknod input/js0 c 13 0
  53. mknod input/js1 c 13 1
  54. mknod input/js2 c 13 2
  55. mknod input/js3 c 13 3
  56. ln -s input/js0 js0
  57. ln -s input/js1 js1
  58. ln -s input/js2 js2
  59. ln -s input/js3 js3
  60. For testing with inpututils it's also convenient to create these:
  61. mknod input/event0 c 13 64
  62. mknod input/event1 c 13 65
  63. mknod input/event2 c 13 66
  64. mknod input/event3 c 13 67
  65. 2.4 Modules needed
  66. ~~~~~~~~~~~~~~~~~~
  67. For all joystick drivers to function, you'll need the userland interface
  68. module in kernel, either loaded or compiled in:
  69. modprobe joydev
  70. For gameport joysticks, you'll have to load the gameport driver as well;
  71. modprobe ns558
  72. And for serial port joysticks, you'll need the serial input line
  73. discipline module loaded and the inputattach utility started:
  74. modprobe serport
  75. inputattach -xxx /dev/tts/X &
  76. In addition to that, you'll need the joystick driver module itself, most
  77. usually you'll have an analog joystick:
  78. modprobe analog
  79. For automatic module loading, something like this might work - tailor to
  80. your needs:
  81. alias tty-ldisc-2 serport
  82. alias char-major-13 input
  83. above input joydev ns558 analog
  84. options analog map=gamepad,none,2btn
  85. 2.5 Verifying that it works
  86. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  87. For testing the joystick driver functionality, there is the jstest
  88. program in the utilities package. You run it by typing:
  89. jstest /dev/input/js0
  90. And it should show a line with the joystick values, which update as you
  91. move the stick, and press its buttons. The axes should all be zero when the
  92. joystick is in the center position. They should not jitter by themselves to
  93. other close values, and they also should be steady in any other position of
  94. the stick. They should have the full range from -32767 to 32767. If all this
  95. is met, then it's all fine, and you can play the games. :)
  96. If it's not, then there might be a problem. Try to calibrate the joystick,
  97. and if it still doesn't work, read the drivers section of this file, the
  98. troubleshooting section, and the FAQ.
  99. 2.6. Calibration
  100. ~~~~~~~~~~~~~~~~
  101. For most joysticks you won't need any manual calibration, since the
  102. joystick should be autocalibrated by the driver automagically. However, with
  103. some analog joysticks, that either do not use linear resistors, or if you
  104. want better precision, you can use the jscal program
  105. jscal -c /dev/input/js0
  106. included in the joystick package to set better correction coefficients than
  107. what the driver would choose itself.
  108. After calibrating the joystick you can verify if you like the new
  109. calibration using the jstest command, and if you do, you then can save the
  110. correction coefficients into a file
  111. jscal -p /dev/input/js0 > /etc/joystick.cal
  112. And add a line to your rc script executing that file
  113. source /etc/joystick.cal
  114. This way, after the next reboot your joystick will remain calibrated. You
  115. can also add the jscal -p line to your shutdown script.
  116. 3. HW specific driver information
  117. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  118. In this section each of the separate hardware specific drivers is described.
  119. 3.1 Analog joysticks
  120. ~~~~~~~~~~~~~~~~~~~~
  121. The analog.c uses the standard analog inputs of the gameport, and thus
  122. supports all standard joysticks and gamepads. It uses a very advanced
  123. routine for this, allowing for data precision that can't be found on any
  124. other system.
  125. It also supports extensions like additional hats and buttons compatible
  126. with CH Flightstick Pro, ThrustMaster FCS or 6 and 8 button gamepads. Saitek
  127. Cyborg 'digital' joysticks are also supported by this driver, because
  128. they're basically souped up CHF sticks.
  129. However the only types that can be autodetected are:
  130. * 2-axis, 4-button joystick
  131. * 3-axis, 4-button joystick
  132. * 4-axis, 4-button joystick
  133. * Saitek Cyborg 'digital' joysticks
  134. For other joystick types (more/less axes, hats, and buttons) support
  135. you'll need to specify the types either on the kernel command line or on the
  136. module command line, when inserting analog into the kernel. The
  137. parameters are:
  138. analog.map=<type1>,<type2>,<type3>,....
  139. 'type' is type of the joystick from the table below, defining joysticks
  140. present on gameports in the system, starting with gameport0, second 'type'
  141. entry defining joystick on gameport1 and so on.
  142. Type | Meaning
  143. -----------------------------------
  144. none | No analog joystick on that port
  145. auto | Autodetect joystick
  146. 2btn | 2-button n-axis joystick
  147. y-joy | Two 2-button 2-axis joysticks on an Y-cable
  148. y-pad | Two 2-button 2-axis gamepads on an Y-cable
  149. fcs | Thrustmaster FCS compatible joystick
  150. chf | Joystick with a CH Flightstick compatible hat
  151. fullchf | CH Flightstick compatible with two hats and 6 buttons
  152. gamepad | 4/6-button n-axis gamepad
  153. gamepad8 | 8-button 2-axis gamepad
  154. In case your joystick doesn't fit in any of the above categories, you can
  155. specify the type as a number by combining the bits in the table below. This
  156. is not recommended unless you really know what are you doing. It's not
  157. dangerous, but not simple either.
  158. Bit | Meaning
  159. --------------------------
  160. 0 | Axis X1
  161. 1 | Axis Y1
  162. 2 | Axis X2
  163. 3 | Axis Y2
  164. 4 | Button A
  165. 5 | Button B
  166. 6 | Button C
  167. 7 | Button D
  168. 8 | CHF Buttons X and Y
  169. 9 | CHF Hat 1
  170. 10 | CHF Hat 2
  171. 11 | FCS Hat
  172. 12 | Pad Button X
  173. 13 | Pad Button Y
  174. 14 | Pad Button U
  175. 15 | Pad Button V
  176. 16 | Saitek F1-F4 Buttons
  177. 17 | Saitek Digital Mode
  178. 19 | GamePad
  179. 20 | Joy2 Axis X1
  180. 21 | Joy2 Axis Y1
  181. 22 | Joy2 Axis X2
  182. 23 | Joy2 Axis Y2
  183. 24 | Joy2 Button A
  184. 25 | Joy2 Button B
  185. 26 | Joy2 Button C
  186. 27 | Joy2 Button D
  187. 31 | Joy2 GamePad
  188. 3.2 Microsoft SideWinder joysticks
  189. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  190. Microsoft 'Digital Overdrive' protocol is supported by the sidewinder.c
  191. module. All currently supported joysticks:
  192. * Microsoft SideWinder 3D Pro
  193. * Microsoft SideWinder Force Feedback Pro
  194. * Microsoft SideWinder Force Feedback Wheel
  195. * Microsoft SideWinder FreeStyle Pro
  196. * Microsoft SideWinder GamePad (up to four, chained)
  197. * Microsoft SideWinder Precision Pro
  198. * Microsoft SideWinder Precision Pro USB
  199. are autodetected, and thus no module parameters are needed.
  200. There is one caveat with the 3D Pro. There are 9 buttons reported,
  201. although the joystick has only 8. The 9th button is the mode switch on the
  202. rear side of the joystick. However, moving it, you'll reset the joystick,
  203. and make it unresponsive for about a one third of a second. Furthermore, the
  204. joystick will also re-center itself, taking the position it was in during
  205. this time as a new center position. Use it if you want, but think first.
  206. The SideWinder Standard is not a digital joystick, and thus is supported
  207. by the analog driver described above.
  208. 3.3 Logitech ADI devices
  209. ~~~~~~~~~~~~~~~~~~~~~~~~
  210. Logitech ADI protocol is supported by the adi.c module. It should support
  211. any Logitech device using this protocol. This includes, but is not limited
  212. to:
  213. * Logitech CyberMan 2
  214. * Logitech ThunderPad Digital
  215. * Logitech WingMan Extreme Digital
  216. * Logitech WingMan Formula
  217. * Logitech WingMan Interceptor
  218. * Logitech WingMan GamePad
  219. * Logitech WingMan GamePad USB
  220. * Logitech WingMan GamePad Extreme
  221. * Logitech WingMan Extreme Digital 3D
  222. ADI devices are autodetected, and the driver supports up to two (any
  223. combination of) devices on a single gameport, using an Y-cable or chained
  224. together.
  225. Logitech WingMan Joystick, Logitech WingMan Attack, Logitech WingMan
  226. Extreme and Logitech WingMan ThunderPad are not digital joysticks and are
  227. handled by the analog driver described above. Logitech WingMan Warrior and
  228. Logitech Magellan are supported by serial drivers described below. Logitech
  229. WingMan Force and Logitech WingMan Formula Force are supported by the
  230. I-Force driver described below. Logitech CyberMan is not supported yet.
  231. 3.4 Gravis GrIP
  232. ~~~~~~~~~~~~~~~
  233. Gravis GrIP protocol is supported by the grip.c module. It currently
  234. supports:
  235. * Gravis GamePad Pro
  236. * Gravis BlackHawk Digital
  237. * Gravis Xterminator
  238. * Gravis Xterminator DualControl
  239. All these devices are autodetected, and you can even use any combination
  240. of up to two of these pads either chained together or using an Y-cable on a
  241. single gameport.
  242. GrIP MultiPort isn't supported yet. Gravis Stinger is a serial device and is
  243. supported by the stinger driver. Other Gravis joysticks are supported by the
  244. analog driver.
  245. 3.5 FPGaming A3D and MadCatz A3D
  246. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  247. The Assassin 3D protocol created by FPGaming, is used both by FPGaming
  248. themselves and is licensed to MadCatz. A3D devices are supported by the
  249. a3d.c module. It currently supports:
  250. * FPGaming Assassin 3D
  251. * MadCatz Panther
  252. * MadCatz Panther XL
  253. All these devices are autodetected. Because the Assassin 3D and the Panther
  254. allow connecting analog joysticks to them, you'll need to load the analog
  255. driver as well to handle the attached joysticks.
  256. The trackball should work with USB mousedev module as a normal mouse. See
  257. the USB documentation for how to setup an USB mouse.
  258. 3.6 ThrustMaster DirectConnect (BSP)
  259. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  260. The TM DirectConnect (BSP) protocol is supported by the tmdc.c
  261. module. This includes, but is not limited to:
  262. * ThrustMaster Millennium 3D Interceptor
  263. * ThrustMaster 3D Rage Pad
  264. * ThrustMaster Fusion Digital Game Pad
  265. Devices not directly supported, but hopefully working are:
  266. * ThrustMaster FragMaster
  267. * ThrustMaster Attack Throttle
  268. If you have one of these, contact me.
  269. TMDC devices are autodetected, and thus no parameters to the module
  270. are needed. Up to two TMDC devices can be connected to one gameport, using
  271. an Y-cable.
  272. 3.7 Creative Labs Blaster
  273. ~~~~~~~~~~~~~~~~~~~~~~~~~
  274. The Blaster protocol is supported by the cobra.c module. It supports only
  275. the:
  276. * Creative Blaster GamePad Cobra
  277. Up to two of these can be used on a single gameport, using an Y-cable.
  278. 3.8 Genius Digital joysticks
  279. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  280. The Genius digitally communicating joysticks are supported by the gf2k.c
  281. module. This includes:
  282. * Genius Flight2000 F-23 joystick
  283. * Genius Flight2000 F-31 joystick
  284. * Genius G-09D gamepad
  285. Other Genius digital joysticks are not supported yet, but support can be
  286. added fairly easily.
  287. 3.9 InterAct Digital joysticks
  288. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  289. The InterAct digitally communicating joysticks are supported by the
  290. interact.c module. This includes:
  291. * InterAct HammerHead/FX gamepad
  292. * InterAct ProPad8 gamepad
  293. Other InterAct digital joysticks are not supported yet, but support can be
  294. added fairly easily.
  295. 3.10 PDPI Lightning 4 gamecards
  296. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  297. PDPI Lightning 4 gamecards are supported by the lightning.c module.
  298. Once the module is loaded, the analog driver can be used to handle the
  299. joysticks. Digitally communicating joystick will work only on port 0, while
  300. using Y-cables, you can connect up to 8 analog joysticks to a single L4
  301. card, 16 in case you have two in your system.
  302. 3.11 Trident 4DWave / Aureal Vortex
  303. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  304. Soundcards with a Trident 4DWave DX/NX or Aureal Vortex/Vortex2 chipsets
  305. provide an "Enhanced Game Port" mode where the soundcard handles polling the
  306. joystick. This mode is supported by the pcigame.c module. Once loaded the
  307. analog driver can use the enhanced features of these gameports..
  308. 3.13 Crystal SoundFusion
  309. ~~~~~~~~~~~~~~~~~~~~~~~~
  310. Soundcards with Crystal SoundFusion chipsets provide an "Enhanced Game
  311. Port", much like the 4DWave or Vortex above. This, and also the normal mode
  312. for the port of the SoundFusion is supported by the cs461x.c module.
  313. 3.14 SoundBlaster Live!
  314. ~~~~~~~~~~~~~~~~~~~~~~~~
  315. The Live! has a special PCI gameport, which, although it doesn't provide
  316. any "Enhanced" stuff like 4DWave and friends, is quite a bit faster than
  317. its ISA counterparts. It also requires special support, hence the
  318. emu10k1-gp.c module for it instead of the normal ns558.c one.
  319. 3.15 SoundBlaster 64 and 128 - ES1370 and ES1371, ESS Solo1 and S3 SonicVibes
  320. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  321. These PCI soundcards have specific gameports. They are handled by the
  322. sound drivers themselves. Make sure you select gameport support in the
  323. joystick menu and sound card support in the sound menu for your appropriate
  324. card.
  325. 3.16 Amiga
  326. ~~~~~~~~~~
  327. Amiga joysticks, connected to an Amiga, are supported by the amijoy.c
  328. driver. Since they can't be autodetected, the driver has a command line.
  329. amijoy.map=<a>,<b>
  330. a and b define the joysticks connected to the JOY0DAT and JOY1DAT ports of
  331. the Amiga.
  332. Value | Joystick type
  333. ---------------------
  334. 0 | None
  335. 1 | 1-button digital joystick
  336. No more joystick types are supported now, but that should change in the
  337. future if I get an Amiga in the reach of my fingers.
  338. 3.17 Game console and 8-bit pads and joysticks
  339. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  340. See joystick-parport.txt for more info.
  341. 3.18 SpaceTec/LabTec devices
  342. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  343. SpaceTec serial devices communicate using the SpaceWare protocol. It is
  344. supported by the spaceorb.c and spaceball.c drivers. The devices currently
  345. supported by spaceorb.c are:
  346. * SpaceTec SpaceBall Avenger
  347. * SpaceTec SpaceOrb 360
  348. Devices currently supported by spaceball.c are:
  349. * SpaceTec SpaceBall 4000 FLX
  350. In addition to having the spaceorb/spaceball and serport modules in the
  351. kernel, you also need to attach a serial port to it. to do that, run the
  352. inputattach program:
  353. inputattach --spaceorb /dev/tts/x &
  354. or
  355. inputattach --spaceball /dev/tts/x &
  356. where /dev/tts/x is the serial port which the device is connected to. After
  357. doing this, the device will be reported and will start working.
  358. There is one caveat with the SpaceOrb. The button #6, the on the bottom
  359. side of the orb, although reported as an ordinary button, causes internal
  360. recentering of the spaceorb, moving the zero point to the position in which
  361. the ball is at the moment of pressing the button. So, think first before
  362. you bind it to some other function.
  363. SpaceTec SpaceBall 2003 FLX and 3003 FLX are not supported yet.
  364. 3.19 Logitech SWIFT devices
  365. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  366. The SWIFT serial protocol is supported by the warrior.c module. It
  367. currently supports only the:
  368. * Logitech WingMan Warrior
  369. but in the future, Logitech CyberMan (the original one, not CM2) could be
  370. supported as well. To use the module, you need to run inputattach after you
  371. insert/compile the module into your kernel:
  372. inputattach --warrior /dev/tts/x &
  373. /dev/tts/x is the serial port your Warrior is attached to.
  374. 3.20 Magellan / Space Mouse
  375. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  376. The Magellan (or Space Mouse), manufactured by LogiCad3d (formerly Space
  377. Systems), for many other companies (Logitech, HP, ...) is supported by the
  378. joy-magellan module. It currently supports only the:
  379. * Magellan 3D
  380. * Space Mouse
  381. models, the additional buttons on the 'Plus' versions are not supported yet.
  382. To use it, you need to attach the serial port to the driver using the
  383. inputattach --magellan /dev/tts/x &
  384. command. After that the Magellan will be detected, initialized, will beep,
  385. and the /dev/input/jsX device should become usable.
  386. 3.21 I-Force devices
  387. ~~~~~~~~~~~~~~~~~~~~
  388. All I-Force devices are supported by the iforce module. This includes:
  389. * AVB Mag Turbo Force
  390. * AVB Top Shot Pegasus
  391. * AVB Top Shot Force Feedback Racing Wheel
  392. * Logitech WingMan Force
  393. * Logitech WingMan Force Wheel
  394. * Guillemot Race Leader Force Feedback
  395. * Guillemot Force Feedback Racing Wheel
  396. * Thrustmaster Motor Sport GT
  397. To use it, you need to attach the serial port to the driver using the
  398. inputattach --iforce /dev/tts/x &
  399. command. After that the I-Force device will be detected, and the
  400. /dev/input/jsX device should become usable.
  401. In case you're using the device via the USB port, the inputattach command
  402. isn't needed.
  403. The I-Force driver now supports force feedback via the event interface.
  404. Please note that Logitech WingMan *3D devices are _not_ supported by this
  405. module, rather by hid. Force feedback is not supported for those devices.
  406. Logitech gamepads are also hid devices.
  407. 3.22 Gravis Stinger gamepad
  408. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409. The Gravis Stinger serial port gamepad, designed for use with laptop
  410. computers, is supported by the stinger.c module. To use it, attach the
  411. serial port to the driver using:
  412. inputattach --stinger /dev/tty/x &
  413. where x is the number of the serial port.
  414. 4. Troubleshooting
  415. ~~~~~~~~~~~~~~~~~~
  416. There is quite a high probability that you run into some problems. For
  417. testing whether the driver works, if in doubt, use the jstest utility in
  418. some of its modes. The most useful modes are "normal" - for the 1.x
  419. interface, and "old" for the "0.x" interface. You run it by typing:
  420. jstest --normal /dev/input/js0
  421. jstest --old /dev/input/js0
  422. Additionally you can do a test with the evtest utility:
  423. evtest /dev/input/event0
  424. Oh, and read the FAQ! :)
  425. 5. FAQ
  426. ~~~~~~
  427. Q: Running 'jstest /dev/input/js0' results in "File not found" error. What's the
  428. cause?
  429. A: The device files don't exist. Create them (see section 2.2).
  430. Q: Is it possible to connect my old Atari/Commodore/Amiga/console joystick
  431. or pad that uses a 9-pin D-type cannon connector to the serial port of my
  432. PC?
  433. A: Yes, it is possible, but it'll burn your serial port or the pad. It
  434. won't work, of course.
  435. Q: My joystick doesn't work with Quake / Quake 2. What's the cause?
  436. A: Quake / Quake 2 don't support joystick. Use joy2key to simulate keypresses
  437. for them.
  438. 6. Programming Interface
  439. ~~~~~~~~~~~~~~~~~~~~~~~~
  440. The 1.0 driver uses a new, event based approach to the joystick driver.
  441. Instead of the user program polling for the joystick values, the joystick
  442. driver now reports only any changes of its state. See joystick-api.txt,
  443. joystick.h and jstest.c included in the joystick package for more
  444. information. The joystick device can be used in either blocking or
  445. nonblocking mode and supports select() calls.
  446. For backward compatibility the old (v0.x) interface is still included.
  447. Any call to the joystick driver using the old interface will return values
  448. that are compatible to the old interface. This interface is still limited
  449. to 2 axes, and applications using it usually decode only 2 buttons, although
  450. the driver provides up to 32.