yarp-devices
|
Thread that listens to Wiimote events.
#include <WiimoteSensor.hpp>
Public Member Functions | |
WiimoteDispatcherThread () | |
Constructor. | |
void | beforeStart () override |
Called just before a new thread starts. | |
void | run () override |
Main body of the new thread. | |
void | setInterfacePointer (struct xwii_iface *iface) |
Set pointer to xwii_iface. | |
WiimoteEventData | getEventData () const |
Retrieve event data object. | |
Private Attributes | |
struct xwii_iface * | iface |
struct xwii_event | event |
WiimoteEventData | eventData |
std::mutex | eventDataMutex |
struct pollfd | fds [2] |
int | fds_num |