class

SDL3::Gamepad::GamepadWrapper

Inherits Reference < Object

Wrapper class for SDL_Gamepad*

Constructors

new(ptr : Pointer(LibSDL3::Gamepad))
Source

Instance methods

axis(axis_type : LibSDL3::GamepadAxis) : Int16
Source
button(button_type : LibSDL3::GamepadButton) : Bool
Source
destroy
Source
name
Source
player_index
Source
product
Source
product_version
Source
rumble(low_frequency_rumble : UInt16, high_frequency_rumble : UInt16, duration_ms : UInt32) : Bool
Source
rumble_triggers(left_rumble : UInt16, right_rumble : UInt16, duration_ms : UInt32) : Bool
Source
set_led(red : UInt8, green : UInt8, blue : UInt8) : Bool
Source
to_unsafe
Source
type
Source
vendor
Source