Changeset 9856 for code/branches/wiimote
- Timestamp:
- Dec 2, 2013, 4:00:46 PM (11 years ago)
- Location:
- code/branches/wiimote/src/libraries/core/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wiimote/src/libraries/core/input/InputManager.cc
r9840 r9856 260 260 //devices_[2] = new WiiMote(devices_.size(), *(new CWiimote())); 261 261 orxout()<< "Size of devices vector after wiimote insertion:" << devices_.size() << std::endl; 262 wiimote.SetMotionSensingMode(CWiimote::ON); 262 263 263 264 } -
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.