From 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Oct 2012 01:19:46 +0300 Subject: Add unused warnings to some files. --- src/joystick.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/joystick.h') 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); -- cgit v1.2.3-60-g2f50