summaryrefslogtreecommitdiff
path: root/src/inputmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 01:19:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch)
tree4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/inputmanager.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadmanaverse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
manaverse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
manaverse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
manaverse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/inputmanager.h')
-rw-r--r--src/inputmanager.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/inputmanager.h b/src/inputmanager.h
index b315ec00c..4f1733ae4 100644
--- a/src/inputmanager.h
+++ b/src/inputmanager.h
@@ -100,7 +100,7 @@ class InputManager final
bool handleEvent(const SDL_Event &event);
- bool checkKey(const KeyData *const key) const;
+ bool checkKey(const KeyData *const key) const A_WARN_UNUSED;
void retrieve();
@@ -110,15 +110,15 @@ class InputManager final
void makeDefault(const int i);
- bool hasConflicts(int &key1, int &key2) const;
+ bool hasConflicts(int &key1, int &key2) const A_WARN_UNUSED;
void callbackNewKey();
- KeyFunction &getKey(int index);
+ KeyFunction &getKey(int index) A_WARN_UNUSED;
- std::string getKeyValueString(const int index) const;
+ std::string getKeyValueString(const int index) const A_WARN_UNUSED;
- std::string getKeyStringLong(const int index) const;
+ std::string getKeyStringLong(const int index) const A_WARN_UNUSED;
void addActionKey(const int action, const int type, const int val);
@@ -126,7 +126,7 @@ class InputManager final
void unassignKey();
- bool isActionActive(const int index) const;
+ bool isActionActive(const int index) const A_WARN_UNUSED;
/**
* Set the index of the new key to be assigned.
@@ -143,7 +143,7 @@ class InputManager final
/**
* Get the index of the new key to be assigned.
*/
- int getNewKeyIndex() const
+ int getNewKeyIndex() const A_WARN_UNUSED
{ return mNewKeyIndex; }
void updateKeyActionMap(KeyToActionMap &actionMap,
@@ -158,13 +158,14 @@ class InputManager final
bool triggerAction(const KeysVector *const ptrs);
- int getKeyIndex(const int value, const int grp, const int type) const;
+ int getKeyIndex(const int value, const int grp,
+ const int type) const A_WARN_UNUSED;
void update() const;
void updateConditionMask();
- int getActionByKey(const SDL_Event &event) const;
+ int getActionByKey(const SDL_Event &event) const A_WARN_UNUSED;
protected:
Setup_Input *mSetupInput; /**< Reference to setup window */