summaryrefslogtreecommitdiff
path: root/src/input/keyinput.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-07 17:06:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-07 17:06:23 +0300
commita225638721d2bba53c15379d48ddab04d7568e24 (patch)
tree1c357290f2525a247a40fb5a887fddfe0728768d /src/input/keyinput.h
parentd2b06398ce43e1ad46078571b41d05df7c1d344b (diff)
downloadplus-a225638721d2bba53c15379d48ddab04d7568e24.tar.gz
plus-a225638721d2bba53c15379d48ddab04d7568e24.tar.bz2
plus-a225638721d2bba53c15379d48ddab04d7568e24.tar.xz
plus-a225638721d2bba53c15379d48ddab04d7568e24.zip
Remove unused events flags.
Diffstat (limited to 'src/input/keyinput.h')
-rw-r--r--src/input/keyinput.h87
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