diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-07 17:06:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-07 17:06:23 +0300 |
commit | a225638721d2bba53c15379d48ddab04d7568e24 (patch) | |
tree | 1c357290f2525a247a40fb5a887fddfe0728768d /src/input | |
parent | d2b06398ce43e1ad46078571b41d05df7c1d344b (diff) | |
download | manaverse-a225638721d2bba53c15379d48ddab04d7568e24.tar.gz manaverse-a225638721d2bba53c15379d48ddab04d7568e24.tar.bz2 manaverse-a225638721d2bba53c15379d48ddab04d7568e24.tar.xz manaverse-a225638721d2bba53c15379d48ddab04d7568e24.zip |
Remove unused events flags.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/keyinput.h | 87 |
1 files changed, 1 insertions, 86 deletions
diff --git a/src/input/keyinput.h b/src/input/keyinput.h index 9920cfa17..b7b7a7936 100644 --- a/src/input/keyinput.h +++ b/src/input/keyinput.h @@ -79,12 +79,7 @@ class KeyInput final #ifdef USE_SDL2 mText(), #endif - mActionId(-2), - mShiftPressed(false), - mControlPressed(false), - mAltPressed(false), - mMetaPressed(false), - mNumericPad(false) + mActionId(-2) { } ~KeyInput() @@ -120,56 +115,6 @@ class KeyInput final return mKey; } - bool isShiftPressed() const - { - return mShiftPressed; - } - - void setShiftPressed(bool pressed) - { - mShiftPressed = pressed; - } - - bool isControlPressed() const - { - return mControlPressed; - } - - void setControlPressed(bool pressed) - { - mControlPressed = pressed; - } - - bool isAltPressed() const - { - return mAltPressed; - } - - void setAltPressed(bool pressed) - { - mAltPressed = pressed; - } - - bool isMetaPressed() const - { - return mMetaPressed; - } - - void setMetaPressed(bool pressed) - { - mMetaPressed = pressed; - } - - bool isNumericPad() const - { - return mNumericPad; - } - - void setNumericPad(bool numpad) - { - mNumericPad = numpad; - } - void setActionId(const int n) { mActionId = n; @@ -208,36 +153,6 @@ class KeyInput final #endif int mActionId; - - /** - * True if shift was pressed at the same time as the key, - * false otherwise. - */ - bool mShiftPressed; - - /** - * True if control was pressed at the same time as the key, - * false otherwise. - */ - bool mControlPressed; - - /** - * True if alt was pressed at the same time as the key, - * false otherwise. - */ - bool mAltPressed; - - /** - * True if meta was pressed at the same time as the key, - * false otherwise. - */ - bool mMetaPressed; - - /** - * True if the numeric pad was used when the key was pressed, - * false otherwise. - */ - bool mNumericPad; }; #endif // INPUT_KEYINPUT_H |