summaryrefslogtreecommitdiff
path: root/src/events/keyevent.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/events/keyevent.h
parentd2b06398ce43e1ad46078571b41d05df7c1d344b (diff)
downloadmanaplus-a225638721d2bba53c15379d48ddab04d7568e24.tar.gz
manaplus-a225638721d2bba53c15379d48ddab04d7568e24.tar.bz2
manaplus-a225638721d2bba53c15379d48ddab04d7568e24.tar.xz
manaplus-a225638721d2bba53c15379d48ddab04d7568e24.zip
Remove unused events flags.
Diffstat (limited to 'src/events/keyevent.h')
-rw-r--r--src/events/keyevent.h34
1 files changed, 2 insertions, 32 deletions
diff --git a/src/events/keyevent.h b/src/events/keyevent.h
index 360d229d7..16bc707c1 100644
--- a/src/events/keyevent.h
+++ b/src/events/keyevent.h
@@ -90,36 +90,21 @@ class KeyEvent: public InputGuiEvent
* Constructor.
*
* @param source The source widget of the event.
- * @param shiftPressed True if shift is pressed, false otherwise.
- * @param controlPressed True if control is pressed, false otherwise.
- * @param altPressed True if alt is pressed, false otherwise.
- * @param metaPressed True if meta is pressed, false otherwise.
* @param type The type of the event. A value from KeyEventType.
- * @param numericPad True if the event occured on the numeric pad,
* false otherwise.
* @param key The key of the event.
*/
KeyEvent(Widget *const source,
- const bool shiftPressed,
- const bool controlPressed,
- const bool altPressed,
- const bool metaPressed,
const unsigned int type,
- const bool numericPad,
const int actionId,
const Key &key) :
- InputGuiEvent(source,
- shiftPressed,
- controlPressed,
- altPressed,
- metaPressed),
+ InputGuiEvent(source),
mKey(key),
#ifdef USE_SDL2
mText(),
#endif
mType(type),
- mActionId(actionId),
- mIsNumericPad(numericPad)
+ mActionId(actionId)
{ }
/**
@@ -137,16 +122,6 @@ class KeyEvent: public InputGuiEvent
{ return mType; }
/**
- * Checks if the key event occured on the numeric pad.
- *
- * @return True if key event occured on the numeric pad,
- * false otherwise.
- *
- */
- bool isNumericPad() const A_WARN_UNUSED
- { return mIsNumericPad; }
-
- /**
* Gets the key of the event.
*
* @return The key of the event.
@@ -181,11 +156,6 @@ class KeyEvent: public InputGuiEvent
unsigned int mType;
int mActionId;
-
- /**
- * True if the numeric pad was used, false otherwise.
- */
- bool mIsNumericPad;
};
#endif // EVENTS_KEYEVENT_H