[ Back ]
Previous versions of NaaLaa did not support analogue input from joysticks, while this version does. So if you're recompiling old source code that uses the joystick commands, you may need to make some changes.
function joyx()
function joyy()
function joybutton(id)
Return a value in the range [-100..100] telling you how much to the left/right the joystick is pressed, where 0 means it's not pressed horizontally at all. For a digital joystick, the value will be -100, 0 or 100.
Return a value in the range [-100..100] telling you how much the joystick is pressed up/down, where 0 means it's not pressed vertically at all. For a digital joystick, the value will be -100, 0 or 100.
Return true if joystick button id is pressed. If id is 0 or greater than 32 any pressed button will cause true to be returned.
[ Back ]