Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9863 for code/branches/wiimote


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

added debug output with deltatime

File:
1 edited

Legend:

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

    r9861 r9863  
    2929                        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
    3030                        int y = (int)((o.pitch-lastOrientation.pitch)/time.getDeltaTime());
     31                        orxout()<<time.getDeltaTime()<<std::endl;
    3132                        IntVector2 abs(0, 0);
    3233                        IntVector2 rel(x, y);
     
    4041                                                                inputStates_[i]->mouseMoved(abs, rel, clippingSize);    //pass random mouse movements to all input states
    4142                        }
    42                 //}
    43 
    4443
    4544        }
     
    6059                lastOrientation.pitch = 0;
    6160
    62 
    6361        }
    6462}
Note: See TracChangeset for help on using the changeset viewer.