Joystick Variables

int joystick;
int joy.active;
int joy.up;
int joy.down;
int joy.left;
int joy.right;
int joy.analogx;
int joy.analogy;
int joy.button[button];

joystick - Current joystick index for joy.* struct. [read/write]

joy.active - Whether or not the joystick's connected and active. [0/1]

joy.up, joy.down, joy.left, joy.right - Whether or not joystick's in "up", "down", "left", or "right" position, respectively [0/1]

joy.analogx - Analog position of joystick x-axis. (-1000 max left, 0 center, +1000 max right)

joy.analogy - Analog position of joystick y-axis. (-1000 max up, 0 center, +1000 max down)

joy.button[button] - Whether or not a button is pressed (buttons 0 to 31 are valid) [0/1].

Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.