- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/core/input/SimpleInputState.h
r2907 r2908 59 59 ~SimpleInputState() { } 60 60 61 void updateInput(float dt);62 void updateInput(float dt, unsigned int device);61 void tickInput(float dt); 62 void tickInput(float dt, unsigned int device); 63 63 64 64 void keyPressed (const KeyEvent& evt); … … 87 87 }; 88 88 89 inline void SimpleInputState:: updateInput(float dt)89 inline void SimpleInputState::tickInput(float dt) 90 90 { 91 91 for (unsigned int i = 0; i < allHandlers_.size(); ++i) 92 92 { 93 allHandlers_[i]-> updateInput(dt);93 allHandlers_[i]->tickInput(dt); 94 94 } 95 95 } 96 96 97 inline void SimpleInputState:: updateInput(float dt, unsigned int device)97 inline void SimpleInputState::tickInput(float dt, unsigned int device) 98 98 { 99 99 switch (device) … … 101 101 case InputDevice::Keyboard: 102 102 if (keyHandler_) 103 keyHandler_-> updateKey(dt);103 keyHandler_->tickKey(dt); 104 104 break; 105 105 106 106 case InputDevice::Mouse: 107 107 if (mouseHandler_) 108 mouseHandler_-> updateMouse(dt);108 mouseHandler_->tickMouse(dt); 109 109 break; 110 110 111 111 default: // joy sticks 112 112 if (joyStickHandler_[device - 2]) 113 joyStickHandler_[device - 2]-> updateJoyStick(dt, device - 2);113 joyStickHandler_[device - 2]->tickJoyStick(dt, device - 2); 114 114 break; 115 115 }
Note: See TracChangeset
for help on using the changeset viewer.