yarp-devices
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
WiimoteDispatcherThread Class Reference

Thread that listens to Wiimote events.

#include <Wiimote.hpp>

Inheritance diagram for WiimoteDispatcherThread:

Public Member Functions

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 {nullptr}
 
struct xwii_event event
 
WiimoteEventData eventData
 
std::mutex eventDataMutex
 
struct pollfd fds [2]
 
int fds_num {0}
 

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