diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-30 01:19:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:11:34 +0300 |
commit | 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch) | |
tree | 4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/joystick.h | |
parent | 2a70a50c785ce639b76141a3a6887836d22fe12c (diff) | |
download | manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2 manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip |
Add unused warnings to some files.
Diffstat (limited to 'src/joystick.h')
-rw-r--r-- | src/joystick.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/joystick.h b/src/joystick.h index a3a609d2f..75e62fa33 100644 --- a/src/joystick.h +++ b/src/joystick.h @@ -60,7 +60,7 @@ class Joystick final /** * Returns the number of available joysticks. */ - static int getNumberOfJoysticks() + static int getNumberOfJoysticks() A_WARN_UNUSED { return joystickCount; } /** @@ -77,7 +77,7 @@ class Joystick final void close(); - bool isEnabled() const + bool isEnabled() const A_WARN_UNUSED { return mEnabled; } void setNumber(const int n); @@ -96,24 +96,24 @@ class Joystick final void finishCalibration(); - bool isCalibrating() const + bool isCalibrating() const A_WARN_UNUSED { return mCalibrating; } - bool buttonPressed(const unsigned char no) const; + bool buttonPressed(const unsigned char no) const A_WARN_UNUSED; - bool isUp() const + bool isUp() const A_WARN_UNUSED { return mEnabled && (mDirection & UP); } - bool isDown() const + bool isDown() const A_WARN_UNUSED { return mEnabled && (mDirection & DOWN); } - bool isLeft() const + bool isLeft() const A_WARN_UNUSED { return mEnabled && (mDirection & LEFT); } - bool isRight() const + bool isRight() const A_WARN_UNUSED { return mEnabled && (mDirection & RIGHT); } - int getNumber() const + int getNumber() const A_WARN_UNUSED { return mNumber; } void setUseInactive(const bool b) @@ -121,15 +121,15 @@ class Joystick final void update(); - 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; - int getButtonFromEvent(const SDL_Event &event) const; + int getButtonFromEvent(const SDL_Event &event) const A_WARN_UNUSED; - bool isActionActive(const int index) const; + bool isActionActive(const int index) const A_WARN_UNUSED; - bool validate() const; + bool validate() const A_WARN_UNUSED; void handleRepeat(const int time); |