#include <wit/event.h>
Public Types | |
enum | Type { Joystick, Analog, Motion, Pointer, PointerLeave, ButtonPress, ButtonRelease, User = 256 } |
Public Member Functions | |
int | type () const |
Public Attributes | |
Controller | controllerType |
unsigned short | controllerNumber |
Protected Member Functions | |
InputEvent (int type, Controller ctype, unsigned short id) |
This is the base class for all events generated by controllers. It is not intended to be instantiated directly.
WIT supports the Wii Remote and the Nunchuk, Classic Controller, and Guitar Hero 3 attachments, as well as GameCube controllers and the Balance Board. If additional controller types are introduced, new values of the Controller enum will be added.
Definition at line 32 of file event.h.
enum wit::Event::Type [inherited] |
wit::InputEvent::InputEvent | ( | int | type, |
Controller | ctype, | ||
unsigned short | id | ||
) | [protected] |
Constructs an input event with the specified type for the specified controller.
Note that this constructor has protected visibility: the InputEvent class cannot be cannot be instantiated directly, only subclassed.
int wit::Event::type | ( | ) | const [inherited] |
unsigned short wit::InputEvent::controllerNumber |