module

Opal::Input::Gamepad

Class methods

connected?(user_index : Int32 = 0) : Bool

Returns true if a physical gamepad is connected on slot user_index

Source
create_driver(user_index : Int32 = 0) : Driver

Public factory to create and listen to gamepad events

Source
mock(driver : Driver = Driver.new, &) : Driver

Top-level helper to execute mock gamepad actions

Source

Nested types