[Orxonox-commit 5198] r9863 - code/branches/wiimote/src/libraries/core/input
georgr at orxonox.net
georgr at orxonox.net
Mon Dec 2 16:47:36 CET 2013
Author: georgr
Date: 2013-12-02 16:47:36 +0100 (Mon, 02 Dec 2013)
New Revision: 9863
Modified:
code/branches/wiimote/src/libraries/core/input/WiiMote.cc
Log:
added debug output with deltatime
Modified: code/branches/wiimote/src/libraries/core/input/WiiMote.cc
===================================================================
--- code/branches/wiimote/src/libraries/core/input/WiiMote.cc 2013-12-02 15:42:46 UTC (rev 9862)
+++ code/branches/wiimote/src/libraries/core/input/WiiMote.cc 2013-12-02 15:47:36 UTC (rev 9863)
@@ -28,6 +28,7 @@
p->Accelerometer.GetOrientation(o.pitch, o.roll, o.yaw);
int x = (int)(500*(o.yaw-lastOrientation.yaw)/time.getDeltaTime()); //get difference in orientation, divide by time to make faster movements result in faster orientation change
int y = (int)((o.pitch-lastOrientation.pitch)/time.getDeltaTime());
+ orxout()<<time.getDeltaTime()<<std::endl;
IntVector2 abs(0, 0);
IntVector2 rel(x, y);
IntVector2 clippingSize(1920, 1080);
@@ -39,9 +40,7 @@
for (unsigned int i = 0; i < inputStates_.size(); ++i)
inputStates_[i]->mouseMoved(abs, rel, clippingSize); //pass random mouse movements to all input states
}
- //}
-
}
void WiiMote::clearBuffers()
{
@@ -59,6 +58,5 @@
lastOrientation.roll = 0;
lastOrientation.pitch = 0;
-
}
}
More information about the Orxonox-commit
mailing list