class Eagle::GamepadConnectionEvent

Overview

A gamepad was plugged in or unplugged.

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, connected : Bool) #

Creates a gamepad connection event.


Instance Method Detail

def connected? : Bool #

True when plugged in, false when unplugged.


def gamepad : Int32 #

The controller's id.