module
Opal::Input::Gamepad
Defined in:
opal/gamepad.cropal/gamepad/focus_mapper.cr
opal/gamepad/mock_dsl.cr
opal/gamepad/types.cr
opal/gamepad/virtual_cursor.cr
opal/gamepad/xinput.cr
Class Method Summary
-
.connected?(user_index : Int32 = 0) : Bool
Returns true if a physical gamepad is connected on slot user_index
-
.create_driver(user_index : Int32 = 0) : Driver
Public factory to create and listen to gamepad events
-
.mock(driver : Driver = Driver.new, &) : Driver
Top-level helper to execute mock gamepad actions
Class Method Detail
def self.connected?(user_index : Int32 = 0) : Bool
#
Returns true if a physical gamepad is connected on slot user_index
Public factory to create and listen to gamepad events
Top-level helper to execute mock gamepad actions