yarp-devices
Public Member Functions | Private Attributes | List of all members
roboticslab::WiimoteDispatcherThread Class Reference

Thread that listens to Wiimote events.

#include <WiimoteSensor.hpp>

Inheritance diagram for roboticslab::WiimoteDispatcherThread:

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
 

The documentation for this class was generated from the following files: