- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/input/InputDevice.h
r8858 r10817 153 153 154 154 //! Captures OIS events (which then get distributed to the derived class) and creates the button held events 155 void update(const Clock& time) 155 void update(const Clock& time) override 156 156 { 157 157 oisDevice_->capture(); … … 160 160 for (unsigned int iB = 0; iB < pressedButtons_.size(); ++iB) 161 161 for (unsigned int iS = 0; iS < inputStates_.size(); ++iS) 162 inputStates_[iS]-> buttonEvent<ButtonEvent::THold, typename Traits::ButtonTypeParam>(162 inputStates_[iS]->template buttonEvent<ButtonEvent::THold, typename Traits::ButtonTypeParam>( 163 163 this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(pressedButtons_[iB])); 164 164 … … 171 171 172 172 //! Clears the list of pressed buttons and calls the derived class's method 173 void clearBuffers() 173 void clearBuffers() override 174 174 { 175 175 pressedButtons_.clear(); … … 180 180 OISDeviceClass* getOISDevice() { return this->oisDevice_; } 181 181 // Returns the name of the derived class as string 182 std::string getClassName() const { return DeviceClass::getClassNameImpl(); }182 std::string getClassName() const override { return DeviceClass::getClassNameImpl(); } 183 183 184 184 protected: … … 197 197 // Call states 198 198 for (unsigned int i = 0; i < inputStates_.size(); ++i) 199 inputStates_[i]-> buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));199 inputStates_[i]->template buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button)); 200 200 } 201 201 … … 219 219 // Call states 220 220 for (unsigned int i = 0; i < inputStates_.size(); ++i) 221 inputStates_[i]-> buttonEvent<ButtonEvent::TRelease, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));221 inputStates_[i]->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.