class
Eagle::GamepadButtonEvent
- Eagle::GamepadButtonEvent
- Eagle::Event
- Reference
- Object
Overview
A gamepad button went down or up. #gamepad is the controller's id.
Defined in:
eagle/core/events.crConstructors
-
.new(gamepad : Int32, button : Eagle::GamepadButton, pressed : Bool)
Creates a gamepad button event.
Instance Method Summary
-
#button : GamepadButton
Which button.
-
#gamepad : Int32
The controller's id.
-
#pressed? : Bool
True for a press, false for a release.
Instance methods inherited from class Eagle::Event
handled=(handled : Bool)
handled=,
handled? : Bool
handled?
Constructor Detail
def self.new(gamepad : Int32, button : Eagle::GamepadButton, pressed : Bool)
#
Creates a gamepad button event.