From 7da95c7f4da447876458a0b1a17736b9a2865844 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 May 2014 19:47:28 +0300 Subject: Move inputaction into separate file. --- src/gui/widgets/button.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/button.cpp') diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index 3b3c97911..661dfc66d 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -70,6 +70,7 @@ #include "events/keyevent.h" +#include "input/inputaction.h" #include "input/keydata.h" #include "resources/image.h" @@ -674,7 +675,7 @@ void Button::keyPressed(KeyEvent& event) { const int action = event.getActionId(); - if (action == Input::KEY_GUI_SELECT) + if (action == InputAction::GUI_SELECT) { mKeyPressed = true; event.consume(); @@ -685,7 +686,7 @@ void Button::keyReleased(KeyEvent& event) { const int action = event.getActionId(); - if (action == Input::KEY_GUI_SELECT && mKeyPressed) + if (action == InputAction::GUI_SELECT && mKeyPressed) { mKeyPressed = false; if (mStick) -- cgit v1.2.3-60-g2f50