← All Docs

Joystick Documentation

Joystick Documentation Source Code

Joystick Methods

b8.Joystick.continueSetup()

Continues setting up the virtual joystick.

b8.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

b8.Joystick.setup()

Sets up the virtual joystick.

b8.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 BeepMini Docs

Actors Documentation

App Intro Documentation

Async Documentation

Cart API

Core Functions

ECS (Entity Component System) Documentation

Game Math Documentation

Game State

Input Documentation

Inventory API

Joystick Documentation

Menu Documentation

Music Documentation

Particle System Documentation

Passcodes Documentation

Public API

Random Numbers Documentation

SFX Documentation

Scene Documentation

Text Renderer

Textmode

Tilemap Documentation

Utilities Documentation