Class: SDL2::Event::JoyButton
- Inherits:
-
SDL2::Event
- Object
- SDL2::Event
- SDL2::Event::JoyButton
- Defined in:
- event.c,
event.c
Overview
This class represents joystick button events.
You don't handle the instance of this class directly, but you handle the instances of two subclasses of this subclasses: JoyButtonDown and JoyButtonUp.
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Integer) button
the joystick button index.
-
- (Integer) pressed
(also: #pressed?)
button is pressed or not.
-
- (Integer) which
the joystick index.
Attributes inherited from SDL2::Event
Instance Method Summary (collapse)
Methods inherited from SDL2::Event
enable=, enabled?, poll, #window
Instance Attribute Details
- (Integer) button
the joystick button index
- (Integer) pressed Also known as: pressed?
button is pressed or not
- (Integer) which
the joystick index