summaryrefslogtreecommitdiff
path: root/src/input/joystick.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/joystick.h')
-rw-r--r--src/input/joystick.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/input/joystick.h b/src/input/joystick.h
index e302de53e..5942dbbdc 100644
--- a/src/input/joystick.h
+++ b/src/input/joystick.h
@@ -93,24 +93,24 @@ class Joystick final
void finishCalibration();
- bool isCalibrating() const A_WARN_UNUSED
+ bool isCalibrating() const noexcept2 A_WARN_UNUSED
{ return mCalibrating; }
bool buttonPressed(const unsigned char no) const A_WARN_UNUSED;
- bool isUp() const A_WARN_UNUSED
+ bool isUp() const noexcept2 A_WARN_UNUSED
{ return mEnabled && (mDirection & UP); }
- bool isDown() const A_WARN_UNUSED
+ bool isDown() const noexcept2 A_WARN_UNUSED
{ return mEnabled && (mDirection & DOWN); }
- bool isLeft() const A_WARN_UNUSED
+ bool isLeft() const noexcept2 A_WARN_UNUSED
{ return mEnabled && (mDirection & LEFT); }
- bool isRight() const A_WARN_UNUSED
+ bool isRight() const noexcept2 A_WARN_UNUSED
{ return mEnabled && (mDirection & RIGHT); }
- int getNumber() const A_WARN_UNUSED
+ int getNumber() const noexcept2 A_WARN_UNUSED
{ return mNumber; }
void setUseInactive(const bool b)