Class: SDL::Event
- Inherits:
-
Object
- Object
- SDL::Event
- Defined in:
- ext/sdl/sdl.c
Defined Under Namespace
Classes: Keydown, Keyup, Mousedown, Mousemove, Mouseup, Quit
Class Method Summary collapse
-
.poll ⇒ Object
// SDL::Event methods:.
Class Method Details
.poll ⇒ Object
// SDL::Event methods:
256 257 258 259 260 261 |
# File 'ext/sdl/sdl.c', line 256
static VALUE Event_s_poll(VALUE self) {
UNUSED(self);
SDL_Event event;
return SDL_PollEvent(&event) == 1 ? event_creators[event.type](&event) : Qnil;
}
|