Skip to content

Mojo input gamecontroller

mojo:mojo.input.GameController

Class GameController#
Properties
Attached True if game controller is attached. (read only)
Name Name of game controller (read only)
Methods
ButtonDown Check up/down state of a game controller button.
Close Closes a game controller.
GetAxis Gets game controller axis value in the range -1 to 1.
GetMapping Gets joystick mapping.
Functions
AddMapping Adds a GameController mapping.
AddMappingsFromFile Loads game controller mappings from a file.
Open