Class: SDL2::Event::JoyDevice
- Inherits:
-
SDL2::Event
- Object
- SDL2::Event
- SDL2::Event::JoyDevice
- Defined in:
- ext/sdl2_ext/event.c,
ext/sdl2_ext/event.c
Overview
This class represents joystick device events (joystick connected events and
{SDL2::Event::JoyDeviceRemoved joystick disconnected events}).
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from SDL2::Event
Instance Method Summary collapse
-
#inspect ⇒ String
Inspection string.
Methods inherited from SDL2::Event
enable=, enabled?, poll, #window
Instance Method Details
#inspect ⇒ String
Returns inspection string.
777 778 779 780 781 782 783 |
# File 'ext/sdl2_ext/event.c', line 777
static VALUE EvJoyDevice_inspect(VALUE self)
{
SDL_Event* ev; Data_Get_Struct(self, SDL_Event, ev);
return rb_sprintf("<%s: type=%u timestamp=%u which=%d>",
rb_obj_classname(self), ev->common.type, ev->common.timestamp,
ev->jdevice.which);
}
|