aboutsummaryrefslogtreecommitdiff
path: root/tools/EventClients/Clients
diff options
context:
space:
mode:
authorMaxwellito <duluc.maxime@gmail.com>2014-02-28 21:04:56 +0000
committermaxwellito <@mxwllt>2014-04-08 21:28:24 +0100
commit621945c5eaee954cf9589d36c29c2f7d30ed0768 (patch)
treefabda98eeeb2500f4ed62821fc111d7fa737b430 /tools/EventClients/Clients
parent022952ea2cd3b4b3e7e8ed65c7bf7862c5ff824b (diff)
[eventclient] Fix Wiimote battery problem
[eventclient] Fix Wiimote battery problem Remove commented code
Diffstat (limited to 'tools/EventClients/Clients')
-rw-r--r--tools/EventClients/Clients/WiiRemote/WiiUse_WiiRemote.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/EventClients/Clients/WiiRemote/WiiUse_WiiRemote.cpp b/tools/EventClients/Clients/WiiRemote/WiiUse_WiiRemote.cpp
index 977a37c8be..66c88e8735 100644
--- a/tools/EventClients/Clients/WiiRemote/WiiUse_WiiRemote.cpp
+++ b/tools/EventClients/Clients/WiiRemote/WiiUse_WiiRemote.cpp
@@ -130,6 +130,7 @@ int connectWiimote(wiimote** wiimotes)
wiiuse_set_leds(wm, WIIMOTE_LED_1);
wiiuse_rumble(wm, 1);
wiiuse_set_orient_threshold(wm,1);
+ DisableMotionSensing(wm);
#ifndef WIN32
usleep(200000);
#else
@@ -221,6 +222,7 @@ int main(int argc, char** argv)
for (int i = 0; i < MAX_WIIMOTES; ++i)
//MAX_WIIMOTES hardcoded at 1.
{
+ DisableMotionSensing(wm);
switch (wiimotes[i]->event)
{
case WIIUSE_EVENT:
@@ -231,7 +233,6 @@ int main(int argc, char** argv)
{
//Prepare to repeat or hold. Do this only once.
timeout = getTicks();
- EnableMotionSensing(wm);
controller.m_abs_roll = 0;
controller.m_abs_pitch = 0;
controller.m_start_roll = 0;