- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/input/InputDevice.h
r10845 r10916 158 158 159 159 // Call all the states with the held button event 160 for ( auto& button : pressedButtons_)161 for ( auto &state : inputStates_)160 for (ButtonType& button : pressedButtons_) 161 for (InputState* state : inputStates_) 162 162 state->template buttonEvent<ButtonEvent::THold, typename Traits::ButtonTypeParam>( 163 163 this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button)); 164 164 165 165 // Call states with device update events 166 for ( auto & elem: inputStates_)167 elem->update(time.getDeltaTime(), this->getDeviceID());166 for (InputState* state : inputStates_) 167 state->update(time.getDeltaTime(), this->getDeviceID()); 168 168 169 169 static_cast<DeviceClass*>(this)->updateImpl(time); … … 196 196 197 197 // Call states 198 for ( auto & elem: inputStates_)199 elem->template buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));198 for (InputState* state : inputStates_) 199 state->template buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button)); 200 200 } 201 201 … … 218 218 219 219 // Call states 220 for ( auto & elem: inputStates_)221 elem->template buttonEvent<ButtonEvent::TRelease, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));220 for (InputState* state : inputStates_) 221 state->template buttonEvent<ButtonEvent::TRelease, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button)); 222 222 } 223 223
Note: See TracChangeset
for help on using the changeset viewer.