summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.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/keyboardconfig.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadmv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/keyboardconfig.h')
-rw-r--r--src/keyboardconfig.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/keyboardconfig.h b/src/keyboardconfig.h
index ee373911f..e101a65e0 100644
--- a/src/keyboardconfig.h
+++ b/src/keyboardconfig.h
@@ -51,13 +51,14 @@ class KeyboardConfig final
/**
* Get the enable flag, which will stop the user from doing actions.
*/
- bool isEnabled() const
+ bool isEnabled() const A_WARN_UNUSED
{ return mEnabled; }
/**
* Get the key function index by providing the keys value.
*/
- int getKeyIndex(const SDL_Event &event, const int grp = 1) const;
+ int getKeyIndex(const SDL_Event &event,
+ const int grp = 1) const A_WARN_UNUSED;
/**
* Set the enable flag, which will stop the user from doing actions.
@@ -70,19 +71,20 @@ class KeyboardConfig final
*/
void refreshActiveKeys();
- std::string getKeyShortString(const std::string &key) const;
+ std::string getKeyShortString(const std::string &key)
+ const A_WARN_UNUSED;
- SDLKey getKeyFromEvent(const SDL_Event &event) const;
+ SDLKey getKeyFromEvent(const SDL_Event &event) const A_WARN_UNUSED;
- int getKeyValueFromEvent(const SDL_Event &event) const;
+ int getKeyValueFromEvent(const SDL_Event &event) const A_WARN_UNUSED;
- KeysVector *getActionVector(const SDL_Event &event);
+ KeysVector *getActionVector(const SDL_Event &event) A_WARN_UNUSED;
- KeysVector *getActionVectorByKey(const int i);
+ KeysVector *getActionVectorByKey(const int i) A_WARN_UNUSED;
- std::string getKeyName(const int key) const;
+ std::string getKeyName(const int key) const A_WARN_UNUSED;
- bool isActionActive(const int index) const;
+ bool isActionActive(const int index) const A_WARN_UNUSED;
void update();
@@ -90,7 +92,7 @@ class KeyboardConfig final
void handleDeActicateKey(const SDL_Event &event);
- int getActionId(const SDL_Event &event);
+ int getActionId(const SDL_Event &event) A_WARN_UNUSED;
void handleRepeat(const int time);