module Opal::Input::Gamepad

Defined in:

opal/gamepad.cr
opal/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

Class Method Detail

def self.connected?(user_index : Int32 = 0) : Bool #

Returns true if a physical gamepad is connected on slot user_index


[View source]
def self.create_driver(user_index : Int32 = 0) : Driver #

Public factory to create and listen to gamepad events


[View source]
def self.mock(driver : Driver = Driver.new, &) : Driver #

Top-level helper to execute mock gamepad actions


[View source]