Changeset 9814 for code/branches/wiimote/src
- Timestamp:
- Nov 25, 2013, 3:43:01 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wiimote/src/libraries/core/input/WiiMote.cc
r9813 r9814 16 16 Orientation o; 17 17 p->Accelerometer.GetOrientation(o.pitch, o.roll, o.yaw); 18 int x = (int)( o.yaw-lastOrientation.yaw)*time.tickDt_;19 int y = (int)( o.pitch-lastOrientation.pitch)*time.tickDt_;18 int x = (int)((o.yaw-lastOrientation.yaw)*time.getDeltaTime()); 19 int y = (int)((o.pitch-lastOrientation.pitch)*time.getDeltaTime()); 20 20 IntVector2 abs(0, 0); 21 21 IntVector2 rel(x, y);
Note: See TracChangeset
for help on using the changeset viewer.