24#include "utils/synchronised.hpp"
26#include "IEventReceiver.h"
38 static const int WIIMOTE_START_IRR_ID = 32;
41 wiimote_t* m_wiimote_handle;
56 void printDebugInfo()
const;
60 Wiimote(wiimote_t* wiimote_handle,
int wiimote_id,
67 irr::SEvent getIrrEvent();
71 wiimote_t* getWiimoteHandle()
const {
return m_wiimote_handle; }
74 bool isConnected()
const {
return m_connected; }
77 void setConnected(
bool connected) { m_connected=connected; }
81 int getIrrId() {
return m_wiimote_id + WIIMOTE_START_IRR_ID; }
specialisation of Inputdevice for gamepad type devices
Definition: gamepad_device.hpp:33
specialisation of DeviceConfig for gamepad type devices
Definition: gamepad_config.hpp:43
A variable that is automatically synchronised using pthreads mutex.
Definition: synchronised.hpp:28
void update(float dt)
Updates all widgets that need to be updated.
Definition: engine.cpp:872