Posted By: painkiller
How to get input from joystick with more than 12 buttons? - 05/01/10 22:27
Hi, that is my question. I've a Steering Wheel with more than 12 buttons and I need to use them, how can I do it?
if(joy_hat == -1) { cam_glance_set_pan = 0; cam_glance_set_tilt = 0; } else if(joy_hat == 0) cam_glance_set_tilt = -30; else if(joy_hat == 180) cam_glance_set_tilt = 40; else if(joy_hat == 270) cam_glance_set_pan = -90; else cam_glance_set_pan = joy_hat;