class Eagle::GamepadButtonEvent

Overview

A gamepad button went down or up. #gamepad is the controller's id.

Defined in:

eagle/core/events.cr

Constructors

Instance Method Summary

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.


Instance Method Detail

def button : GamepadButton #

Which button.


def gamepad : Int32 #

The controller's id.


def pressed? : Bool #

True for a press, false for a release.