Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9814 for code


Ignore:
Timestamp:
Nov 25, 2013, 3:43:01 PM (11 years ago)
Author:
georgr
Message:

bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wiimote/src/libraries/core/input/WiiMote.cc

    r9813 r9814  
    1616                Orientation o;
    1717                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());
    2020                IntVector2 abs(0, 0);
    2121                IntVector2 rel(x, y);
Note: See TracChangeset for help on using the changeset viewer.