[Orxonox-commit 5179] r9844 - code/branches/wiimote/src/libraries/core/input
georgr at orxonox.net
georgr at orxonox.net
Mon Dec 2 14:50:52 CET 2013
Author: georgr
Date: 2013-12-02 14:50:52 +0100 (Mon, 02 Dec 2013)
New Revision: 9844
Modified:
code/branches/wiimote/src/libraries/core/input/WiiMote.cc
Log:
trying to get a reaction out of the wiiMote, 3rd try
Modified: code/branches/wiimote/src/libraries/core/input/WiiMote.cc
===================================================================
--- code/branches/wiimote/src/libraries/core/input/WiiMote.cc 2013-12-02 13:48:29 UTC (rev 9843)
+++ code/branches/wiimote/src/libraries/core/input/WiiMote.cc 2013-12-02 13:50:52 UTC (rev 9844)
@@ -20,6 +20,7 @@
if(p->Buttons.isPressed(CButtons::BUTTON_A))
orxout()<<"ZOMG!!1!"<<endl;
Orientation o;
+ p->SetMotionSensingMode(CWiimote::ON);
p->Accelerometer.GetOrientation(o.pitch, o.roll, o.yaw);
int x = (int)(1000*(o.yaw-lastOrientation.yaw)/time.getDeltaTime());
int y = (int)(1000*(o.pitch-lastOrientation.pitch)/time.getDeltaTime());
More information about the Orxonox-commit
mailing list