- Timestamp:
- Dec 2, 2013, 4:00:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wiimote/src/libraries/core/input/WiiMote.cc
r9855 r9856 19 19 if (PWii->Poll()) 20 20 { 21 CWiimote::EventTypes e = p->GetEvent();21 //CWiimote::EventTypes e = p->GetEvent(); 22 22 if(p->Buttons.isPressed(CButtons::BUTTON_A)||p->Buttons.isJustPressed(CButtons::BUTTON_A)) 23 23 { … … 25 25 } 26 26 Orientation o; 27 p->SetMotionSensingMode(CWiimote::ON); 27 28 28 p->Accelerometer.GetOrientation(o.pitch, o.roll, o.yaw); 29 29 int x = (int)(500*(o.yaw-lastOrientation.yaw)/time.getDeltaTime());
Note: See TracChangeset
for help on using the changeset viewer.