chiark / gitweb /
hostside: hidrawconv: always report joysticks as doubles -1..+1; disable dpad, as...
[trains.git] / hostside / hidrawconv-joytechneos.c
index 6b3945834748acee047ad36e5f28ccbdee199b06..5ad96fed3b60e1f0cc9519c4f57a5f4b24ce3ad5 100644 (file)
@@ -16,11 +16,11 @@ static const KeyBit keybits[]= {
   { 0 }
 };
 static const ValLoc vallocs[]= {
-  { "EV_ABS ABS_X",          1,0,-1, 0xff, 0x7f },
+  { "EV_ABS ABS_X",          1,0,-1, 0xff, 0x80 },
   { "EV_ABS ABS_Y",          2,0,-1, 0xff, 0x80 },
-  { "EV_ABS ABS_RUDDER",     3,0,+1, 0xff, 0x7f },
+  { "EV_ABS ABS_RUDDER",     3,0,+1, 0xff, 0x80 },
   { "EV_ABS ABS_THROTTLE",   4,0,-1, 0xff, 0x80 },
-  { "EV_ABS DPAD",           5,0,+1, 0x0f, 0x00 },
+//  { "EV_ABS DPAD",           5,0,+1, 0x0f, 0x00 },
   { 0 }
 };