![]() |
omegalib
13.1
|
Reads input data from Wii controllers. More...
#include <WiimoteService.h>
Public Types | |
enum | ButtonFlag { ButtonA = Event::Button1, ButtonB = Event::Button2, ButtonUp = Event::ButtonUp, ButtonDown = Event::ButtonDown, ButtonLeft = Event::ButtonLeft, ButtonRight = Event::ButtonRight, ButtonPlus = Event::Button5, ButtonMinus = Event::Button6, ButtonOne = Event::Button3, ButtonTwo = Event::Button4 } |
Wii button mappings. More... | |
enum | ControllerTypeFlag { TypeWiimote = Event::User << 10, TypeNunchuk = Event::User << 11, TypeMotionPlus = Event::User << 12 } |
![]() | |
enum | ServiceType { Pointer = EventBase::ServiceTypePointer, Mocap = EventBase::ServiceTypeMocap, Keyboard = EventBase::ServiceTypeKeyboard, Controller = EventBase::ServiceTypeController, Ui = EventBase::ServiceTypeUi, Generic = EventBase::ServiceTypeGeneric, Brain = EventBase::ServiceTypeBrain, Wand = EventBase::ServiceTypeWand, Speech = EventBase::ServiceTypeSpeech } |
This enumeration is kept for compatibility reason and may be removed in the future. More... | |
enum | ServicePollPriority { PollFirst, PollNormal, PollLast } |
Public Member Functions | |
void | setup (Setting &settings) |
virtual void | initialize () |
virtual void | poll () |
virtual void | dispose () |
void | setUpdateInterval (float value) |
Sets the data update interval, in seconds. More... | |
float | getUpdateInterval () |
![]() | |
Service () | |
int | getServiceId () |
virtual | ~Service () |
ServiceManager * | getManager () |
String | getName () |
bool | isInitialized () |
bool | isDebugEnabled () |
Returns true if debug mode is enabled for this service. More... | |
ServicePollPriority | getPollPriority () |
void | setPollPriority (ServicePollPriority value) |
virtual void | start () |
virtual void | stop () |
void | lockEvents () |
void | unlockEvents () |
Event * | writeHead () |
Event * | readHead () |
Event * | readTail () |
Event * | getEvent (int index) |
void | doSetup (ServiceManager *mng, Setting &settings) |
void | doInitialize (ServiceManager *sm, int serviceId) |
![]() | |
ReferenceType () | |
virtual | ~ReferenceType () |
void | ref () |
void | unref () |
long | refCount () |
Static Public Member Functions | |
static WiimoteService * | New () |
![]() | |
static void | printObjCounts () |
Additional Inherited Members | |
![]() | |
static List< ReferenceType * > | mysObjList |
Reads input data from Wii controllers.
|
virtual |
Reimplemented from omicron::Service.
float omicron::WiimoteService::getUpdateInterval | ( | ) |
|
virtual |
Reimplemented from omicron::Service.
|
inlinestatic |
|
virtual |
Reimplemented from omicron::Service.
|
virtual |
Reimplemented from omicron::Service.
void omicron::WiimoteService::setUpdateInterval | ( | float | value | ) |
Sets the data update interval, in seconds.
This is the interval at which this service will generate events If set to zero, the service will generate events as fast as possible.