Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2013, 4:00:46 PM (11 years ago)
Author:
georgr
Message:

still trying to get quicker reaction to button presses

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  
    260260                         //devices_[2] = new WiiMote(devices_.size(), *(new CWiimote()));
    261261                         orxout()<< "Size of devices vector after wiimote insertion:" << devices_.size() << std::endl;
     262                         wiimote.SetMotionSensingMode(CWiimote::ON);
    262263
    263264                       }
  • code/branches/wiimote/src/libraries/core/input/WiiMote.cc

    r9855 r9856  
    1919                if (PWii->Poll())
    2020                {
    21                         CWiimote::EventTypes e = p->GetEvent();
     21                        //CWiimote::EventTypes e = p->GetEvent();
    2222                        if(p->Buttons.isPressed(CButtons::BUTTON_A)||p->Buttons.isJustPressed(CButtons::BUTTON_A))
    2323                                {
     
    2525                                }
    2626                        Orientation o;
    27                         p->SetMotionSensingMode(CWiimote::ON);
     27
    2828                        p->Accelerometer.GetOrientation(o.pitch, o.roll, o.yaw);
    2929                        int x = (int)(500*(o.yaw-lastOrientation.yaw)/time.getDeltaTime());
Note: See TracChangeset for help on using the changeset viewer.