Kaba struct Gamepad ed

...

Syntax ed

struct Gamepad extends GamepadState
    var axes: f32[6]
    var deadzone: f32
    var index: i32
    var state_prev: GamepadState

    # constructors
    func mut __init__(i: i32)

    # functions
    func button(b: Button) -> bool
    func click(b: Button) -> bool
    func present() -> bool
    func mut update()
    func static get(index: i32) -> shared[Gamepad]

    # operators
    func mut __assign__(other: Gamepad)  # Gamepad = Gamepad

    # nested classes
    class Button

Nested classes ed

Functions ed

func button(b: Button) -> bool
...

func click(b: Button) -> bool
...

func present() -> bool
...

func mut update()
...

func static get(index: i32) -> shared[Gamepad]
...

Elements ed

var axes: f32[6]
...

var deadzone: f32
...

var index: i32
...

var state_prev: GamepadState
...