Commit graph

9 commits

Author SHA1 Message Date
Simon Howard
cb59a9679b Merge branch 'master' of github.com:chocolate-doom/joytest 2015-04-13 21:56:07 -04:00
Simon Howard
c94b9cc8cb Add -pollaxes flag for special case joysticks.
For most joysticks we can detect when a stick has been pushed outside
of the dead zone towards an extreme. But when testing the Gravis
Gamepad with a Gamepoert to USB adapter, I found that it was not
possible to register a value over ~20000 in some directions. In this
kind of case it is not possible using the event code to tell when
the stick has been pushed in those directions. So add -pollaxes that
will poll once a second and print the value of each axis, as a fallback
in case the usual event code doesn't work.

Also, adjust the dead zone limit so that > 1/3 of the full range is
considered pushing to an extreme. This is consistent with the Chocolate
Doom joystick code that assumes this.
2015-04-13 21:49:41 -04:00
Simon Howard
da3b94dd25 Fix ordering of LDFLAGS. 2014-05-04 20:16:43 +00:00
Simon Howard
17204bbf73 Write joytest output to a log file. 2014-05-04 16:10:42 -04:00
Simon Howard
7822971ace Add missing newline. 2014-05-04 16:07:24 -04:00
Simon Howard
bdeeea0cbe Add .lvimrc. 2014-05-04 16:07:12 -04:00
Simon Howard
dd5a8334ce Add README file. 2014-05-04 15:40:20 -04:00
Simon Howard
bf5e7f7cf4 Add .gitignore. 2014-05-04 15:38:28 -04:00
Simon Howard
5759ef7d8e Add first version of joystick test program. 2014-05-04 15:37:44 -04:00