Beep8 logo

Joystick Documentation

Joystick Documentation Source Code

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

More Beep8 Docs

Actors Documentation

Async Documentation

Core Functions

Input Documentation

App Intro Documentation

Joystick Documentation

Menu Documentation

Music Documentation

Passcodes Documentation

Public API

Random Numbers Documentation

SFX Documentation

Tilemap Documentation

Utilities Documentation