19 #ifndef WIIMOTE_MANAGER_HPP
20 #define WIIMOTE_MANAGER_HPP
24 #include "input/wiimote.hpp"
25 #include "states_screens/dialogs/message_dialog.hpp"
26 #include "utils/cpp2011.hpp"
30 #include "IEventReceiver.h"
32 #define MAX_WIIMOTES 4
39 extern WiimoteManager* wiimote_manager;
49 std::vector<Wiimote*> m_wiimotes;
52 wiimote_t** m_all_wiimote_handles;
56 #define WIIMOTE_THREADING
57 #ifdef WIIMOTE_THREADING
66 static bool m_enabled;
77 static void enable() { m_enabled =
true; }
80 static bool isEnabled() {
return m_enabled; }
82 void launchDetection(
int timeout);
86 void enableAccelerometer(
bool state);
95 virtual void onConfirm() OVERRIDE;
101 int askUserToConnectWiimotes();
104 unsigned int getNumberOfWiimotes()
const {
105 return (
unsigned int)m_wiimotes.size();
specialisation of Inputdevice for gamepad type devices
Definition: gamepad_device.hpp:33
specialisation of DeviceConfig for gamepad type devices
Definition: gamepad_config.hpp:43
Listener interface to get notified of whether the user chose to confirm or cancel.
Definition: message_dialog.hpp:39
void update(float dt)
Updates all widgets that need to be updated.
Definition: engine.cpp:872