rfdiazpr / sketchyphysics

Automatically exported from code.google.com/p/sketchyphysics
1 stars 0 forks source link

Joystick control #84

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm staring to control some models with my joystick (SideWinder Force Feedback 
Pro) but I don't find how to use all axis, buttons and POV.

For X and Y axis, the commands joy("leftx") and joy("lefty") work fine. Same if 
I use joyLX and joyLY.

For Z axis (twist), only the command joyRX works, but not joy("rightx"). Why?

For throttle axis, I try commands joyRY and joy("righty") but no effect.

For buttons, I found some correspondance between name of gamepad and numbering 
of joystick:
   "a" => button 1
   "b" => button 2
   "x" => button 3
   "y" => button 4
   "lb" => button 5
   "rb" => button 6
But nothing for buttons 7, 8, 9 and 10

Is it possible to have more control with generic joystick, and not only based 
on gamepad?
For example, we could have
   joy("axis_1"), joy("axis_2")... joy("axis_8") to cover all analog axis
   joybutton("pov_up"), joybutton("pov_down"), joybutton("pov_left"), joybutton("pov_right") for the Point-Of-View stick
   joybutton("1"), joybutton("2")... joybutton("32") to cover all buttons

I'm ready to test some beta version to check (I can't check all combinations 
but at least 4 axis, one POV and 10 buttons).

Best regards

Original issue reported on code.google.com by nicolas....@gmail.com on 14 Jun 2011 at 8:30