summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 00:41:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 00:41:05 +0300
commitec51be4fd71babf30a73332bc4b73edb994ee462 (patch)
tree0199da5c75066083b4287204d3532f69420764eb /src/input
parent7969f0590204ac48d74e98c3211bca27693bac44 (diff)
downloadmanaverse-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.gz
manaverse-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.bz2
manaverse-ec51be4fd71babf30a73332bc4b73edb994ee462.tar.xz
manaverse-ec51be4fd71babf30a73332bc4b73edb994ee462.zip
Convert KeyEvent enum into strong typed enum.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/keyinput.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/keyinput.h b/src/input/keyinput.h
index f308af244..8555d8bbb 100644
--- a/src/input/keyinput.h
+++ b/src/input/keyinput.h
@@ -85,12 +85,12 @@ class KeyInput final
~KeyInput()
{ }
- void setType(KeyEventType::Type type)
+ void setType(KeyEventTypeT type)
{
mType = type;
}
- KeyEventType::Type getType() const
+ KeyEventTypeT getType() const
{
return mType;
}
@@ -136,7 +136,7 @@ class KeyInput final
/**
* Holds the type of the key input.
*/
- KeyEventType::Type mType;
+ KeyEventTypeT mType;
#ifdef USE_SDL2
std::string mText;