[Orxonox-commit 5149] r9814 - code/branches/wiimote/src/libraries/core/input
georgr at orxonox.net
georgr at orxonox.net
Mon Nov 25 15:43:02 CET 2013
Author: georgr
Date: 2013-11-25 15:43:01 +0100 (Mon, 25 Nov 2013)
New Revision: 9814
Modified:
code/branches/wiimote/src/libraries/core/input/WiiMote.cc
Log:
bug fix
Modified: code/branches/wiimote/src/libraries/core/input/WiiMote.cc
===================================================================
--- code/branches/wiimote/src/libraries/core/input/WiiMote.cc 2013-11-25 14:38:51 UTC (rev 9813)
+++ code/branches/wiimote/src/libraries/core/input/WiiMote.cc 2013-11-25 14:43:01 UTC (rev 9814)
@@ -15,8 +15,8 @@
orxout()<<"ZOMG!!1!"<<endl;
Orientation o;
p->Accelerometer.GetOrientation(o.pitch, o.roll, o.yaw);
- int x = (int)(o.yaw-lastOrientation.yaw)*time.tickDt_;
- int y = (int)(o.pitch-lastOrientation.pitch)*time.tickDt_;
+ int x = (int)((o.yaw-lastOrientation.yaw)*time.getDeltaTime());
+ int y = (int)((o.pitch-lastOrientation.pitch)*time.getDeltaTime());
IntVector2 abs(0, 0);
IntVector2 rel(x, y);
IntVector2 clippingSize(1920, 1080);
More information about the Orxonox-commit
mailing list