struct Espresso::JoystickConnectEvent

Overview

Event triggered when a joystick connects or disconnects.

Defined in:

espresso/events/joystick_connect_event.cr

Instance Method Summary

Instance Method Detail

def connected? : Bool #

Flag indicating whether the joystick was connected or not.

True means the joystick was connected, false means it was disconnected.


[View source]
def disconnected? #

Flag indicating whether the joystick was disconnected or connected.

True means the joystick was disconnected, false means it was connected.


[View source]
def joystick : Joystick #

Joystick involved in the event.


[View source]