summaryrefslogtreecommitdiff
path: root/src/input/inputitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/inputitem.h')
-rw-r--r--src/input/inputitem.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/input/inputitem.h b/src/input/inputitem.h
index 5abe34ad1..c3260ff03 100644
--- a/src/input/inputitem.h
+++ b/src/input/inputitem.h
@@ -21,20 +21,24 @@
#ifndef INPUT_INPUTITEM_H
#define INPUT_INPUTITEM_H
+#include "enums/input/inputtype.h"
+
#include "localconsts.h"
struct InputItem final
{
InputItem() :
- type(-1),
+ type(InputType::UNKNOWN),
value(-1)
{ }
- InputItem(const int type0, const int value0) :
- type(type0), value(value0)
+ InputItem(const InputTypeT type0,
+ const int value0) :
+ type(type0),
+ value(value0)
{ }
- int type;
+ InputTypeT type;
int value;
};