Class: SDL2::Event::ControllerDevice

Inherits:
SDL2::Event show all
Defined in:
event.c

Direct Known Subclasses

ControllerDeviceAdded, ControllerDeviceRemapped, ControllerDeviceRemoved

Instance Attribute Summary

Attributes inherited from SDL2::Event

#timestamp, #type

Instance Method Summary (collapse)

Methods inherited from SDL2::Event

enable=, enabled?, poll, #window

Instance Method Details

- (Object) inspect



816
817
818
819
820
821
822
# File 'event.c', line 816

static VALUE ControllerDevice_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->cdevice.which);
}