abstract struct SDL::Event
- SDL::Event
- Struct
- Value
- Object
Direct Known Subclasses
- SDL::Event::ControllerAxis
- SDL::Event::ControllerButton
- SDL::Event::ControllerDevice
- SDL::Event::DollarGesture
- SDL::Event::Drop
- SDL::Event::JoyAxis
- SDL::Event::JoyBall
- SDL::Event::JoyButton
- SDL::Event::JoyDevice
- SDL::Event::JoyHat
- SDL::Event::Keyboard
- SDL::Event::MouseButton
- SDL::Event::MouseMotion
- SDL::Event::MouseWheel
- SDL::Event::MultiGesture
- SDL::Event::Quit
- SDL::Event::SysWM
- SDL::Event::TextEditing
- SDL::Event::TextInput
- SDL::Event::TouchFinger
- SDL::Event::User
- SDL::Event::Window
Defined in:
events.crConstructors
Class Method Summary
-
.enable(type : Type) : Nil
Enables an event type.
-
.enabled?(type : Type) : Nil
Returns true if an event type is enabled.
-
.ignore(type : Type) : Nil
Ignores an event type.
-
.ignored?(type : Type)
Returns true if an event type is ignored.
-
.poll
Tries to pull an event from the event queue; returns nil immediately if the queue is empty.
-
.wait(timeout = nil)
Tries to pull an event from the event queue; blocks until an event is added to the queue, indefinitely, or for a given timeout.
Instance Method Summary
Constructor Detail
Class Method Detail
Enables an event type. They will be pushed to the event queue.
Ignores an event type. They will no longer be pushed to the queue event.
def self.poll
#
Tries to pull an event from the event queue; returns nil immediately if the queue is empty.
def self.wait(timeout = nil)
#
Tries to pull an event from the event queue; blocks until an event is added to the queue, indefinitely, or for a given timeout.