struct Espresso::JoystickConnectEvent
- Espresso::JoystickConnectEvent
- Struct
- Value
- Object
Overview
Event triggered when a joystick connects or disconnects.
Defined in:
espresso/events/joystick_connect_event.crInstance Method Summary
-
#connected? : Bool
Flag indicating whether the joystick was connected or not.
-
#disconnected?
Flag indicating whether the joystick was disconnected or connected.
-
#joystick : Joystick
Joystick involved in the event.
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.
def disconnected?
#
Flag indicating whether the joystick was disconnected or connected.
True means the joystick was disconnected, false means it was connected.