Changeset 10845 for code/branches/cpp11_v2/src/libraries/core/input
- Timestamp:
- Nov 23, 2015, 10:20:29 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/libraries/core/input
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/input/HalfAxis.h
r10817 r10845 56 56 using Button::execute; 57 57 bool execute(); 58 bool addParamCommand(ParamCommand* command) override;59 v oid clear() override;58 virtual bool addParamCommand(ParamCommand* command) override; 59 virtual void clear() override; 60 60 void reset(); 61 61 -
code/branches/cpp11_v2/src/libraries/core/input/InputBuffer.h
r10817 r10845 66 66 { } 67 67 virtual ~InputBufferListenerTuple() { } 68 v oid callFunction() override68 virtual void callFunction() override 69 69 { 70 70 (listener_->*function_)(); … … 165 165 { if (this->cursor_ > 0) { --this->cursor_; } } 166 166 167 v oid buttonPressed(const KeyEvent& evt) override;167 virtual void buttonPressed(const KeyEvent& evt) override; 168 168 169 169 private: 170 170 bool charIsAllowed(const char& input); 171 171 172 v oid buttonHeld(const KeyEvent& evt) override;173 void processKey 172 virtual void buttonHeld (const KeyEvent& evt) override; 173 void processKey (const KeyEvent& evt); 174 174 175 v oid keyboardUpdated(float dt) override;175 virtual void keyboardUpdated(float dt) override; 176 176 177 177 std::string buffer_; -
code/branches/cpp11_v2/src/libraries/core/input/InputCommands.h
r10817 r10845 76 76 { 77 77 public: 78 bool execute(float abs = 1.0f, float rel = 1.0f) override;79 CommandEvaluation* getEvaluation() override;78 virtual bool execute(float abs = 1.0f, float rel = 1.0f) override; 79 virtual CommandEvaluation* getEvaluation() override; 80 80 virtual SimpleCommand* clone() override { return new SimpleCommand(*this); } 81 81 … … 104 104 public: 105 105 ParamCommand() : scale_(1.0f), paramCommand_(nullptr) { } 106 bool execute(float abs = 1.0f, float rel = 1.0f) override;107 CommandEvaluation* getEvaluation() override;106 virtual bool execute(float abs = 1.0f, float rel = 1.0f) override; 107 virtual CommandEvaluation* getEvaluation() override; 108 108 virtual ParamCommand* clone() override { return new ParamCommand(*this); } 109 109 -
code/branches/cpp11_v2/src/libraries/core/input/InputDevice.h
r10821 r10845 153 153 154 154 //! Captures OIS events (which then get distributed to the derived class) and creates the button held events 155 v oid update(const Clock& time) override155 virtual void update(const Clock& time) override 156 156 { 157 157 oisDevice_->capture(); … … 171 171 172 172 //! Clears the list of pressed buttons and calls the derived class's method 173 v oid clearBuffers() override173 virtual 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 override { return DeviceClass::getClassNameImpl(); }182 virtual std::string getClassName() const override { return DeviceClass::getClassNameImpl(); } 183 183 184 184 protected: -
code/branches/cpp11_v2/src/libraries/core/input/InputManager.h
r10817 r10845 208 208 209 209 // From WindowEventListener 210 v oid windowFocusChanged(bool bFocus) override;210 virtual void windowFocusChanged(bool bFocus) override; 211 211 212 212 private: // variables -
code/branches/cpp11_v2/src/libraries/core/input/InputState.h
r10817 r10845 157 157 ~InputState() { } 158 158 159 v oid JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override;159 virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override; 160 160 161 161 //! Sets the priority (only to be used by the InputManager!) -
code/branches/cpp11_v2/src/libraries/core/input/JoyStick.h
r10817 r10845 77 77 78 78 private: 79 v oid calibrationStarted() override;80 v oid calibrationStopped() override;79 virtual void calibrationStarted() override; 80 virtual void calibrationStopped() override; 81 81 void evaluateCalibration(); 82 82 … … 86 86 87 87 //! OIS event handler 88 bool buttonPressed (const OIS::JoyStickEvent &arg, int button) override88 virtual bool buttonPressed (const OIS::JoyStickEvent &arg, int button) override 89 89 { 90 90 super::buttonPressed(static_cast<JoyStickButtonCode::ByEnum>(button)); … … 93 93 94 94 //! OIS event handler 95 bool buttonReleased(const OIS::JoyStickEvent &arg, int button) override95 virtual bool buttonReleased(const OIS::JoyStickEvent &arg, int button) override 96 96 { 97 97 super::buttonReleased(static_cast<JoyStickButtonCode::ByEnum>(button)); … … 99 99 } 100 100 101 bool axisMoved (const OIS::JoyStickEvent &arg, int axis) override;102 bool sliderMoved (const OIS::JoyStickEvent &arg, int id) override;103 bool povMoved (const OIS::JoyStickEvent &arg, int id) override;101 virtual bool axisMoved (const OIS::JoyStickEvent &arg, int axis) override; 102 virtual bool sliderMoved (const OIS::JoyStickEvent &arg, int id) override; 103 virtual bool povMoved (const OIS::JoyStickEvent &arg, int id) override; 104 104 //! OIS event handler (don't remove that because of OIS version issues!) 105 bool vector3Moved (const OIS::JoyStickEvent &arg, int id) override { return true; }105 virtual bool vector3Moved (const OIS::JoyStickEvent &arg, int id) override { return true; } 106 106 107 107 //! Returns the class name as string -
code/branches/cpp11_v2/src/libraries/core/input/KeyBinder.h
r10821 r10845 86 86 virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override; 87 87 88 v oid allDevicesUpdated(float dt) override;89 v oid mouseUpdated(float dt) override;90 v oid joyStickUpdated(unsigned int joyStick, float dt) override;88 virtual void allDevicesUpdated(float dt) override; 89 virtual void mouseUpdated(float dt) override; 90 virtual void joyStickUpdated(unsigned int joyStick, float dt) override; 91 91 // internal 92 92 void tickHalfAxis(HalfAxis& halfAxis); 93 93 94 v oid buttonPressed (const KeyEvent& evt) override;95 v oid buttonReleased(const KeyEvent& evt) override;96 v oid buttonHeld (const KeyEvent& evt) override;97 98 v oid buttonPressed (MouseButtonCode::ByEnum button) override;99 v oid buttonReleased(MouseButtonCode::ByEnum button) override;100 v oid buttonHeld (MouseButtonCode::ByEnum button) override;101 v oid mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) override;102 v oid mouseScrolled (int abs, int rel) override;103 104 v oid buttonPressed (unsigned int device, JoyStickButtonCode::ByEnum button) override;105 v oid buttonReleased(unsigned int device, JoyStickButtonCode::ByEnum button) override;106 v oid buttonHeld (unsigned int device, JoyStickButtonCode::ByEnum button) override;107 v oid axisMoved (unsigned int device, unsigned int axis, float value) override;94 virtual void buttonPressed (const KeyEvent& evt) override; 95 virtual void buttonReleased(const KeyEvent& evt) override; 96 virtual void buttonHeld (const KeyEvent& evt) override; 97 98 virtual void buttonPressed (MouseButtonCode::ByEnum button) override; 99 virtual void buttonReleased(MouseButtonCode::ByEnum button) override; 100 virtual void buttonHeld (MouseButtonCode::ByEnum button) override; 101 virtual void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) override; 102 virtual void mouseScrolled (int abs, int rel) override; 103 104 virtual void buttonPressed (unsigned int device, JoyStickButtonCode::ByEnum button) override; 105 virtual void buttonReleased(unsigned int device, JoyStickButtonCode::ByEnum button) override; 106 virtual void buttonHeld (unsigned int device, JoyStickButtonCode::ByEnum button) override; 107 virtual void axisMoved (unsigned int device, unsigned int axis, float value) override; 108 108 109 109 protected: // variables -
code/branches/cpp11_v2/src/libraries/core/input/KeyDetector.h
r10817 r10845 51 51 52 52 void callback(const std::string& name); 53 v oid JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override;53 virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override; 54 54 void assignCommands(); 55 55 -
code/branches/cpp11_v2/src/libraries/core/input/Keyboard.h
r10817 r10845 75 75 } 76 76 77 bool keyPressed(const OIS::KeyEvent& arg) override;78 bool keyReleased(const OIS::KeyEvent& arg) override;77 virtual bool keyPressed(const OIS::KeyEvent& arg) override; 78 virtual bool keyReleased(const OIS::KeyEvent& arg) override; 79 79 80 80 //! Returns the class name as string -
code/branches/cpp11_v2/src/libraries/core/input/Mouse.h
r10817 r10845 74 74 private: 75 75 //! OIS event handler 76 bool mousePressed(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override76 virtual bool mousePressed(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override 77 77 { 78 78 super::buttonPressed(static_cast<MouseButtonCode::ByEnum>(id)); … … 81 81 82 82 //! OIS event handler 83 bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override83 virtual bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override 84 84 { 85 85 super::buttonReleased(static_cast<MouseButtonCode::ByEnum>(id)); … … 87 87 } 88 88 89 bool mouseMoved(const OIS::MouseEvent &arg) override;89 virtual bool mouseMoved(const OIS::MouseEvent &arg) override; 90 90 91 v oid windowResized(unsigned int newWidth, unsigned int newHeight) override;91 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) override; 92 92 93 93 // Returns the class name as string
Note: See TracChangeset
for help on using the changeset viewer.