#include <WiimoteManager.hpp>

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. | |
| Wiimote & | getWiimote (const unsigned int &i=0) |
| Returns a specific active wiimote. | |
| unsigned int | getWiimoteNumber (void) |
| Returns the number of active wiimotes. | |
Definition at line 47 of file WiimoteManager.hpp.
| kn::WiimoteManager::WiimoteManager | ( | void | ) |
| kn::WiimoteManager::~WiimoteManager | ( | void | ) |
| Wiimote & kn::WiimoteManager::getWiimote | ( | const unsigned int & | i = 0 |
) |
Returns a specific active wiimote.
| i | wiimote's id (lower than getWiimoteNumber()) |
Definition at line 93 of file WiimoteManager.cpp.
| unsigned int kn::WiimoteManager::getWiimoteNumber | ( | void | ) | [inline] |
Returns the number of active wiimotes.
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.
| maxtime | maximum time for wiimotes detection (in seconds) | |
| maxwiimotes | maximum number of connected wiimote |
Definition at line 48 of file WiimoteManager.cpp.
| void kn::WiimoteManager::stop | ( | void | ) |
1.5.8