diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-18 19:47:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-18 19:47:28 +0300 |
commit | 7da95c7f4da447876458a0b1a17736b9a2865844 (patch) | |
tree | 4b6ac0ab5bc32a11234a5363de95d0cfec8cb7d5 /src/touchactions.cpp | |
parent | 515ce6c1413b5e3da131f3e4997abdc39c003a2c (diff) | |
download | plus-7da95c7f4da447876458a0b1a17736b9a2865844.tar.gz plus-7da95c7f4da447876458a0b1a17736b9a2865844.tar.bz2 plus-7da95c7f4da447876458a0b1a17736b9a2865844.tar.xz plus-7da95c7f4da447876458a0b1a17736b9a2865844.zip |
Move inputaction into separate file.
Diffstat (limited to 'src/touchactions.cpp')
-rw-r--r-- | src/touchactions.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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(); } |