WiiDeviceServer Class Reference
#include <WiiDeviceServer.h>
Collaboration diagram for WiiDeviceServer:

Public Member Functions | |
| WiiDeviceServer () | |
| virtual | ~WiiDeviceServer () |
| int | run (int argc, char **argv) |
Static Public Member Functions | |
| static void | cwiid_error (cwiid_wiimote_t *wiimote, const char *s, va_list ap) |
| static void | cwiid_message_callback (cwiid_wiimote_t *wiimote, int mesg_count, union cwiid_mesg mesg[], struct timespec *timestamp) |
Private Member Functions | |
| bool | loadConfig (char *configFile) |
| bool | initDeviceStateSender () |
| bool | initWiimote () |
| void | cleanupWiimote () |
| void | cleanupDeviceStateSender () |
| void | lightWiimoteLeds (int num_leds) |
| bool | setWiimoteLedState (cwiid_wiimote_t *wiimote, unsigned char led_state) |
| bool | setWiimoteReportMode (cwiid_wiimote_t *wiimote, unsigned char rpt_mode) |
| void | handleCalibrationMessage (cwiid_wiimote_t *wiimote, int mesg_count, union cwiid_mesg mesg[], struct timespec *timestamp) |
| void | handleMessage (cwiid_wiimote_t *wiimote, int mesg_count, union cwiid_mesg mesg[], struct timespec *timestamp) |
| void | updateWiimoteButtonState (uint16_t buttons) |
| void | updateNunchukButtonState (uint8_t buttons) |
| bool | updateNunchukAxes (uint8_t xAxis, uint8_t yAxis) |
| bool | handleIRInput (struct cwiid_ir_mesg ir_mesg) |
| double | getSystemTime () |
Private Attributes | |
| bool | running |
| double | sendTimeStep |
| std::string | hostName |
| int | port |
| int | controllerID |
| DeviceState | deviceState |
| DeviceStateSender | deviceStateSender |
| std::string | wiimoteAddress |
| bool | useWiimotePosition |
| bool | useNUNCHUK |
| cwiid_wiimote_t * | wiimote |
| bool | calibrated |
| uint8_t | oldNunchukButtonState |
| uint8_t | oldNunchukXAxisValue |
| uint8_t | oldNunchukYAxisValue |
| uint8_t | minNunchukXAxisValue |
| uint8_t | minNunchukYAxisValue |
| uint8_t | maxNunchukXAxisValue |
| uint8_t | maxNunchukYAxisValue |
| float | nunchukThreshold |
| float | ledDistance |
| int | numIRSources |
| float | irXOffset |
| float | irYOffset |
| float | irZOffset |
| osg::Lock * | lock |
Static Private Attributes | |
| static WiiDeviceServer * | instance = NULL |
Constructor & Destructor Documentation
| WiiDeviceServer::WiiDeviceServer | ( | ) |
| WiiDeviceServer::~WiiDeviceServer | ( | ) | [virtual] |
Member Function Documentation
| void WiiDeviceServer::cleanupDeviceStateSender | ( | ) | [private] |
| void WiiDeviceServer::cleanupWiimote | ( | ) | [private] |
| void WiiDeviceServer::cwiid_error | ( | cwiid_wiimote_t * | wiimote, | |
| const char * | s, | |||
| va_list | ap | |||
| ) | [static] |
| void WiiDeviceServer::cwiid_message_callback | ( | cwiid_wiimote_t * | wiimote, | |
| int | mesg_count, | |||
| union cwiid_mesg | mesg[], | |||
| struct timespec * | timestamp | |||
| ) | [static] |
| double WiiDeviceServer::getSystemTime | ( | ) | [private] |
| void WiiDeviceServer::handleCalibrationMessage | ( | cwiid_wiimote_t * | wiimote, | |
| int | mesg_count, | |||
| union cwiid_mesg | mesg[], | |||
| struct timespec * | timestamp | |||
| ) | [private] |
| bool WiiDeviceServer::handleIRInput | ( | struct cwiid_ir_mesg | ir_mesg | ) | [private] |
| void WiiDeviceServer::handleMessage | ( | cwiid_wiimote_t * | wiimote, | |
| int | mesg_count, | |||
| union cwiid_mesg | mesg[], | |||
| struct timespec * | timestamp | |||
| ) | [private] |
| bool WiiDeviceServer::initDeviceStateSender | ( | ) | [private] |
| bool WiiDeviceServer::initWiimote | ( | ) | [private] |
| void WiiDeviceServer::lightWiimoteLeds | ( | int | num_leds | ) | [private] |
| bool WiiDeviceServer::loadConfig | ( | char * | configFile | ) | [private] |
| int WiiDeviceServer::run | ( | int | argc, | |
| char ** | argv | |||
| ) |
| bool WiiDeviceServer::setWiimoteLedState | ( | cwiid_wiimote_t * | wiimote, | |
| unsigned char | led_state | |||
| ) | [private] |
| bool WiiDeviceServer::setWiimoteReportMode | ( | cwiid_wiimote_t * | wiimote, | |
| unsigned char | rpt_mode | |||
| ) | [private] |
| bool WiiDeviceServer::updateNunchukAxes | ( | uint8_t | xAxis, | |
| uint8_t | yAxis | |||
| ) | [private] |
| void WiiDeviceServer::updateNunchukButtonState | ( | uint8_t | buttons | ) | [private] |
| void WiiDeviceServer::updateWiimoteButtonState | ( | uint16_t | buttons | ) | [private] |
Member Data Documentation
bool WiiDeviceServer::calibrated [private] |
int WiiDeviceServer::controllerID [private] |
DeviceState WiiDeviceServer::deviceState [private] |
std::string WiiDeviceServer::hostName [private] |
WiiDeviceServer * WiiDeviceServer::instance = NULL [static, private] |
float WiiDeviceServer::irXOffset [private] |
float WiiDeviceServer::irYOffset [private] |
float WiiDeviceServer::irZOffset [private] |
float WiiDeviceServer::ledDistance [private] |
osg::Lock* WiiDeviceServer::lock [private] |
uint8_t WiiDeviceServer::maxNunchukXAxisValue [private] |
uint8_t WiiDeviceServer::maxNunchukYAxisValue [private] |
uint8_t WiiDeviceServer::minNunchukXAxisValue [private] |
uint8_t WiiDeviceServer::minNunchukYAxisValue [private] |
int WiiDeviceServer::numIRSources [private] |
float WiiDeviceServer::nunchukThreshold [private] |
uint8_t WiiDeviceServer::oldNunchukButtonState [private] |
uint8_t WiiDeviceServer::oldNunchukXAxisValue [private] |
uint8_t WiiDeviceServer::oldNunchukYAxisValue [private] |
int WiiDeviceServer::port [private] |
bool WiiDeviceServer::running [private] |
double WiiDeviceServer::sendTimeStep [private] |
bool WiiDeviceServer::useNUNCHUK [private] |
bool WiiDeviceServer::useWiimotePosition [private] |
cwiid_wiimote_t* WiiDeviceServer::wiimote [private] |
std::string WiiDeviceServer::wiimoteAddress [private] |
The documentation for this class was generated from the following files:
- tools/applications/WiiDeviceServer/WiiDeviceServer.h
- tools/applications/WiiDeviceServer/WiiDeviceServer.cpp
Generated on Wed Oct 20 16:12:02 2010 for inVRs by
1.5.8