#include <CWiidMotionReceiver.h>
Public Member Functions | |
CWiidMotionReceiver () | |
virtual | ~CWiidMotionReceiver () |
virtual void | start () throw (Error) |
virtual void | run () |
virtual void | stop () |
void | setAddr (const std::string a) |
const std::string | getAddr () const |
Receives motion data from a wiimote using the CWiid library
Definition at line 15 of file CWiidMotionReceiver.h.
CWiidMotionReceiver::CWiidMotionReceiver | ( | ) |
Initializes member variables
Definition at line 6 of file CWiidMotionReceiver.cpp.
CWiidMotionReceiver::~CWiidMotionReceiver | ( | ) | [virtual] |
Calles stop if necessary
Definition at line 11 of file CWiidMotionReceiver.cpp.
const std::string CWiidMotionReceiver::getAddr | ( | ) | const [inline] |
void CWiidMotionReceiver::run | ( | ) | [virtual] |
Receives and handles motion and button-events. If the user presses the A-Button on his wiimote, run is stopped.
Implements AbstractMotionReceiver.
Definition at line 49 of file CWiidMotionReceiver.cpp.
void CWiidMotionReceiver::setAddr | ( | const std::string | a | ) | [inline] |
Set mac-address of the wiimote.
a | Address string of format: XX:XX:XX:XX:XX:XX where X is a hexadecimal number. If a is 00:00:00:00:00:00 cwiid will search for a wiimote |
Definition at line 47 of file CWiidMotionReceiver.h.
void CWiidMotionReceiver::start | ( | ) | throw (Error) [virtual] |
Connects to the wiimote and receives calibration data. Throws Error if anything goes wrong
Implements AbstractMotionReceiver.
Definition at line 16 of file CWiidMotionReceiver.cpp.
void CWiidMotionReceiver::stop | ( | ) | [virtual] |
Stops run and deinitalizes cwiid
Implements AbstractMotionReceiver.
Definition at line 39 of file CWiidMotionReceiver.cpp.