Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » joystick things

This thread is locked; no one can reply to it. rss feed Print
joystick things
William Labbett
Member #4,486
March 2004
avatar

Just wondering, is the up and down axis on joysticks always guaranteed to be axis 1?

On a slightly different note, just wanted to mention that on the joypad I've got
there are two sticks and one pad. On the left stick ex_joystick_event.c counts three
axes, but the third one, the z axis is actually registered when the right joystick is moved left and right. Is this the way it's meant to be?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Just guessing, but I wouldn't count on that.

As for joysticks, they should have at least two axes, unless they're a slider, in which case I could see them having one. I'm no expert, and this probably didn't help much, but I felt like you deserved a response.

William Labbett
Member #4,486
March 2004
avatar

Thanks Edgar.

Go to: