Using a joystick to test the accelerometer
by Ricky Hopper · in iTorque 2D · 08/07/2009 (12:45 pm) · 6 replies
Hey,
Can I just hook up a joystick and run the game within iTGB and test accelerometer input that way instead of compiling through xCode onto a device? I'm trying to right now and it's not working, I might be calling the joystick wrong though. What parameter do you use for getJoystickAxes()?
Can I just hook up a joystick and run the game within iTGB and test accelerometer input that way instead of compiling through xCode onto a device? I'm trying to right now and it's not working, I might be calling the joystick wrong though. What parameter do you use for getJoystickAxes()?
About the author
Recent Threads
#2
08/07/2009 (1:01 pm)
I'm trying to use the Logitech Extreme 3D Pro, should that work?
#3
08/07/2009 (3:08 pm)
not sure how, since the accelerometer has 3 axes, while a joystick only has 2
#4
08/07/2009 (3:27 pm)
well I don't use the z-axis in my game, only x and y.
#5
08/09/2009 (3:37 pm)
Anyone have any further insight?
#6
you don't get 2D data on the accelerometer, nor will you have much joy using only 2D data to extract the 3D orientation of the iphone.
the accelerometer returns the "down" (to earth core) direction, from that direction you calculate the orientation the iphone should have
08/09/2009 (3:53 pm)
its not like you have the option to use the z axis or not.you don't get 2D data on the accelerometer, nor will you have much joy using only 2D data to extract the 3D orientation of the iphone.
the accelerometer returns the "down" (to earth core) direction, from that direction you calculate the orientation the iphone should have
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
There are some problems like not having a 3D joystick or that a joystick does not represent the same thing as the accelerometer which only gives you the "down" direction