summaryrefslogtreecommitdiff
path: root/src/gui/buttoninfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/buttoninfo.h')
-rw-r--r--src/gui/buttoninfo.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/buttoninfo.h b/src/gui/buttoninfo.h
index a6c7eb9e0..15f0c3052 100644
--- a/src/gui/buttoninfo.h
+++ b/src/gui/buttoninfo.h
@@ -21,6 +21,8 @@
#ifndef GUI_BUTTONINFO_H
#define GUI_BUTTONINFO_H
+#include "enums/input/inputaction.h"
+
#include "enums/simpletypes/visible.h"
#include "localconsts.h"
@@ -29,7 +31,9 @@ class Button;
struct ButtonInfo final
{
- ButtonInfo(Button *const button0, const int key0, const Visible visible0) :
+ ButtonInfo(Button *const button0,
+ const InputActionT key0,
+ const Visible visible0) :
button(button0),
key(key0),
visible(visible0)
@@ -39,7 +43,7 @@ struct ButtonInfo final
A_DELETE_COPY(ButtonInfo)
Button *button;
- int key;
+ InputActionT key;
Visible visible;
};
#endif // GUI_BUTTONINFO_H