summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-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