The module contains global variables representing the state of the one-button joystick. If the program is not using any joystick driver, the state of these variables is undefined.
To actually use this module, an appropriate joystick module must be used,
such as c64_joy
, nes_joy
, gb_joy
or x16_joy
.
Horizontal joystick movement. 1 if right, -1 if left, 0 if neither.
Vertical joystick movement. 1 if down, -1 if up, 0 if neither.
1 if main button pressed, 0 if not pressed.
Resets the state variables.
The default implementation resets only the main button.
May be overridden by a strong alias on some platforms that have more buttons.
This module set the default joystick to no joystick.
A reserved name for reading the default joystick.