Changeset 9863 for code/branches/wiimote/src/libraries
- Timestamp:
- Dec 2, 2013, 4:47:36 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wiimote/src/libraries/core/input/WiiMote.cc
r9861 r9863 29 29 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 30 30 int y = (int)((o.pitch-lastOrientation.pitch)/time.getDeltaTime()); 31 orxout()<<time.getDeltaTime()<<std::endl; 31 32 IntVector2 abs(0, 0); 32 33 IntVector2 rel(x, y); … … 40 41 inputStates_[i]->mouseMoved(abs, rel, clippingSize); //pass random mouse movements to all input states 41 42 } 42 //}43 44 43 45 44 } … … 60 59 lastOrientation.pitch = 0; 61 60 62 63 61 } 64 62 }
Note: See TracChangeset
for help on using the changeset viewer.