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/touchactions.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/touchactions.cpp') diff --git a/src/touchactions.cpp b/src/touchactions.cpp index 17e9591af..1224ae9c2 100644 --- a/src/touchactions.cpp +++ b/src/touchactions.cpp @@ -70,33 +70,33 @@ static void moveChar(int x, int y) // detecting direction if (x > 0) { - touchManager.setActionActive(Input::KEY_MOVE_LEFT, false); - touchManager.setActionActive(Input::KEY_MOVE_RIGHT, true); + touchManager.setActionActive(InputAction::MOVE_LEFT, false); + touchManager.setActionActive(InputAction::MOVE_RIGHT, true); } else if (x < 0) { - touchManager.setActionActive(Input::KEY_MOVE_LEFT, true); - touchManager.setActionActive(Input::KEY_MOVE_RIGHT, false); + touchManager.setActionActive(InputAction::MOVE_LEFT, true); + touchManager.setActionActive(InputAction::MOVE_RIGHT, false); } else { - touchManager.setActionActive(Input::KEY_MOVE_LEFT, false); - touchManager.setActionActive(Input::KEY_MOVE_RIGHT, false); + touchManager.setActionActive(InputAction::MOVE_LEFT, false); + touchManager.setActionActive(InputAction::MOVE_RIGHT, false); } if (y > 0) { - touchManager.setActionActive(Input::KEY_MOVE_DOWN, true); - touchManager.setActionActive(Input::KEY_MOVE_UP, false); + touchManager.setActionActive(InputAction::MOVE_DOWN, true); + touchManager.setActionActive(InputAction::MOVE_UP, false); } else if (y < 0) { - touchManager.setActionActive(Input::KEY_MOVE_DOWN, false); - touchManager.setActionActive(Input::KEY_MOVE_UP, true); + touchManager.setActionActive(InputAction::MOVE_DOWN, false); + touchManager.setActionActive(InputAction::MOVE_UP, true); } else { - touchManager.setActionActive(Input::KEY_MOVE_DOWN, false); - touchManager.setActionActive(Input::KEY_MOVE_UP, false); + touchManager.setActionActive(InputAction::MOVE_DOWN, false); + touchManager.setActionActive(InputAction::MOVE_UP, false); } inputManager.updateConditionMask(); } -- cgit v1.2.3-70-g09d2