kn::WiimoteManager Class Reference

Wiimotes manager. More...

#include <WiimoteManager.hpp>

Collaboration diagram for kn::WiimoteManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WiimoteManager (void)
 Constructor.
 ~WiimoteManager (void)
 Destructor.
void launch (const unsigned int &maxtime=3, const unsigned int &maxwiimotes=4)
 Launches wiimote connection anf events handling.
void stop (void)
 Stops wimmotes connections and event treatment.
WiimotegetWiimote (const unsigned int &i=0)
 Returns a specific active wiimote.
unsigned int getWiimoteNumber (void)
 Returns the number of active wiimotes.


Detailed Description

Wiimotes manager.

Author:
Frankoi

Definition at line 47 of file WiimoteManager.hpp.


Constructor & Destructor Documentation

kn::WiimoteManager::WiimoteManager ( void   ) 

Constructor.

Author:
Frankoi

Definition at line 35 of file WiimoteManager.cpp.

kn::WiimoteManager::~WiimoteManager ( void   ) 

Destructor.

Stops the wiimote with stop() method

Author:
Frankoi

Definition at line 44 of file WiimoteManager.cpp.


Member Function Documentation

Wiimote & kn::WiimoteManager::getWiimote ( const unsigned int &  i = 0  ) 

Returns a specific active wiimote.

Parameters:
i wiimote's id (lower than getWiimoteNumber())
Author:
Frankoi

Definition at line 93 of file WiimoteManager.cpp.

unsigned int kn::WiimoteManager::getWiimoteNumber ( void   )  [inline]

Returns the number of active wiimotes.

Returns:
number of active wiimotes
Author:
Frankoi

Definition at line 115 of file WiimoteManager.hpp.

void kn::WiimoteManager::launch ( const unsigned int &  maxtime = 3,
const unsigned int &  maxwiimotes = 4 
)

Launches wiimote connection anf events handling.

Parameters:
maxtime maximum time for wiimotes detection (in seconds)
maxwiimotes maximum number of connected wiimote
Author:
Frankoi

Definition at line 48 of file WiimoteManager.cpp.

void kn::WiimoteManager::stop ( void   ) 

Stops wimmotes connections and event treatment.

Author:
Frankoi

Definition at line 74 of file WiimoteManager.cpp.


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

Generated on Thu Nov 12 16:06:36 2009 for OpenKraken-controller by  doxygen 1.5.8