omegalib  13.1
omicron::WiimoteService Class Reference

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 }
 
- Public Types inherited from omicron::Service
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 ()
 
- Public Member Functions inherited from omicron::Service
 Service ()
 
int getServiceId ()
 
virtual ~Service ()
 
ServiceManagergetManager ()
 
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 ()
 
EventwriteHead ()
 
EventreadHead ()
 
EventreadTail ()
 
EventgetEvent (int index)
 
void doSetup (ServiceManager *mng, Setting &settings)
 
void doInitialize (ServiceManager *sm, int serviceId)
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 

Static Public Member Functions

static WiimoteServiceNew ()
 
- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 

Additional Inherited Members

- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 

Detailed Description

Reads input data from Wii controllers.

+ Inheritance diagram for omicron::WiimoteService:

Member Enumeration Documentation

Wii button mappings.

Enumerator
ButtonA 
ButtonB 
ButtonUp 
ButtonDown 
ButtonLeft 
ButtonRight 
ButtonPlus 
ButtonMinus 
ButtonOne 
ButtonTwo 
Enumerator
TypeWiimote 
TypeNunchuk 
TypeMotionPlus 

Member Function Documentation

virtual void omicron::WiimoteService::dispose ( )
virtual

Reimplemented from omicron::Service.

float omicron::WiimoteService::getUpdateInterval ( )
virtual void omicron::WiimoteService::initialize ( )
virtual

Reimplemented from omicron::Service.

static WiimoteService* omicron::WiimoteService::New ( )
inlinestatic
virtual void omicron::WiimoteService::poll ( )
virtual

Reimplemented from omicron::Service.

void omicron::WiimoteService::setup ( Setting settings)
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.


The documentation for this class was generated from the following file: