From d5e0c211ced60c77acad477f30ef8039ef05b48b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Dec 2015 01:49:45 +0300 Subject: Add const attribute to input. --- src/input/inputmanager.h | 2 +- src/input/multitouchmanager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input') diff --git a/src/input/inputmanager.h b/src/input/inputmanager.h index 09ce00fed..9c11e03f4 100644 --- a/src/input/inputmanager.h +++ b/src/input/inputmanager.h @@ -64,7 +64,7 @@ class InputManager final void callbackNewKey(); - InputFunction &getKey(InputActionT index) A_WARN_UNUSED; + InputFunction &getKey(InputActionT index) A_CONST A_WARN_UNUSED; std::string getKeyValueString(const InputActionT index) const A_WARN_UNUSED; diff --git a/src/input/multitouchmanager.h b/src/input/multitouchmanager.h index ef98a046b..e93a919eb 100644 --- a/src/input/multitouchmanager.h +++ b/src/input/multitouchmanager.h @@ -48,7 +48,7 @@ class MultiTouchManager final A_DELETE_COPY(MultiTouchManager) - void init(); + void init() A_CONST; #ifdef USE_SDL2 void updateFinger(const SDL_Event &event, const bool active); -- cgit v1.2.3-70-g09d2