1
0
Fork 0
flightgear/3rdparty/joystick
Florent Rougon df352346ad jsWindows: fail gracefully when joyGetDevCaps() returns undocumented values
According to Pfeffer's report[1] and many other messages on the
Internet, joyGetDevCaps() can return the (so far) undocumented value
165, which some say is JOYERR_PARMS. Since this is a valid return code
for joyGetPosEx() (not joyGetDevCaps()!), handle a few return codes from
that function too, and don't throw an exception when joyGetDevCaps()'s
return value is not one of the documented ones (we simply can't trust
its documentation).

[1] https://sourceforge.net/p/flightgear/mailman/message/36657149/
2019-05-04 08:58:15 +02:00
..
CMakeLists.txt Hopefully fix FreeBSD joystick support 2018-05-21 17:17:42 +02:00
js.cxx Import PLIB JS code into FlightGear 2018-05-03 00:02:09 +01:00
js.h Import PLIB JS code into FlightGear 2018-05-03 00:02:09 +01:00
jsBSD.cxx jsSetError() takes only two arguments (unlike ulSetError()) 2018-06-12 12:10:00 +02:00
jsLinux.cxx PLIB joystick: don't nuke kernel-level deadband settings on Linux 2018-05-03 21:51:36 +02:00
jsMacOSX.cxx Import PLIB JS code into FlightGear 2018-05-03 00:02:09 +01:00
jsNone.cxx Import PLIB JS code into FlightGear 2018-05-03 00:02:09 +01:00
jsWindows.cxx jsWindows: fail gracefully when joyGetDevCaps() returns undocumented values 2019-05-04 08:58:15 +02:00