Joystick Documentation
Joystick Methods
beep8.Joystick.continueSetup()
Continues setting up the virtual joystick.
beep8.Joystick.handleButtonEvent(buttonKeyName, down, evt)
Handles a button event.
Parameters
- buttonKeyName (string): The key name to simulate
- down (boolean): Whether the button is being pressed or released
- evt (Event): The event object
beep8.Joystick.setup()
Sets up the virtual joystick.
beep8.Joystick.setUpButton(buttonId, buttonKeyName)
Sets up a virtual joystick button. If buttonKeyName is null, the button will be hidden. Otherwise, the button will be set up to simulate the given key.
Parameters
- buttonId (string): The ID of the button element
- buttonKeyName (string): The key name to simulate