Class: Rubygame::Events::JoystickButtonReleased
- Inherits:
-
Object
- Object
- Rubygame::Events::JoystickButtonReleased
- Includes:
- JoystickButtonEvent
- Defined in:
- lib/rubygame/events/joystick_events.rb
Overview
JoystickButtonReleased is an event that occurs when a joystick button is released (no longer being pressed).
See also JoystickButtonPressed.
Instance Attribute Summary
Attributes included from JoystickButtonEvent
Instance Method Summary collapse
-
#initialize(joystick_id, button) ⇒ JoystickButtonReleased
constructor
Creates a new JoystickButtonPressed instance.
Constructor Details
#initialize(joystick_id, button) ⇒ JoystickButtonReleased
Creates a new JoystickButtonPressed instance.
- joystick_id
-
an integer identifying which joystick changed. The first joystick is 0.
- button
-
an integer identifying which button was released. The first button on each joystick is 0.
174 175 176 |
# File 'lib/rubygame/events/joystick_events.rb', line 174 def initialize( joystick_id, ) super end |