vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Wiimote.cpp File Reference

Example using the wiiuse API. More...

#include "precompiled.h"
#include <osg/Notify>
#include <osg/io_utils>
#include <sstream>
#include <vreckoDP/base/Wiimote.h>
#include <vrecko/ReaderWriter.h>
#include <vrecko/MTLock.h>

Macros

#define NUM_WII_DEVICES   2
 
#define SEND_EVENT(name, msg)
 
#define SEND_BUTTON(msg)   SEND_EVENT("Button", msg)
 

Variables

MTLock wiiSendersLock
 
std::vector< std::string > wiiSenderStrings
 

Detailed Description

Example using the wiiuse API.

This file is an example of how to use the wiiuse library.

Macro Definition Documentation

#define NUM_WII_DEVICES   2
#define SEND_BUTTON (   msg)    SEND_EVENT("Button", msg)
#define SEND_EVENT (   name,
  msg 
)
Value:
{ \
sender = fakeSenderString; \
sender += "#"; \
sender += name; \
world->getEventDispatcherPtr()->reportEvent(sender, msg); \
}

Variable Documentation

MTLock wiiSendersLock
std::vector<std::string> wiiSenderStrings