Class: SDL2::Event::JoyButton

Inherits:
SDL2::Event show all
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

JoyButtonDown, JoyButtonUp

Instance Attribute Summary (collapse)

Attributes inherited from SDL2::Event

#timestamp, #type

Instance Method Summary (collapse)

Methods inherited from SDL2::Event

enable=, enabled?, poll, #window

Instance Attribute Details

- (Integer) button

the joystick button index

Returns:

  • (Integer)

- (Integer) pressed Also known as: pressed?

button is pressed or not

Returns:

  • (Integer)

- (Integer) which

the joystick index

Returns:

  • (Integer)

Instance Method Details

- (Object) inspect