Commit graph

6 commits

Author SHA1 Message Date
Dries Harnie
471e4748b3 ANDROID: Support swipe-based virtcontrols
Touching and holding the left side of the screen functions as a
joystick.
Swiping the middle side allows fine control over arrow keys (eg.
dialogues), tapping it sends an enter key.
Swiping the right side up/down sends pageup/pagedown.
2013-06-02 15:27:55 +02:00
Dries Harnie
7396dc5778 ANDROID: Joystick movement and swipes 2013-06-02 14:53:50 +02:00
Dries Harnie
97a698a554 ANDROID: Add kVirtControls to OSystem_Android 2013-06-02 14:53:50 +02:00
Tobias Gunkel
7b6a74d21d ANDROID: add joystick support 2013-01-13 12:06:46 +01:00
Tobias Gunkel
228cc7ac64 ANDROID: adjust event handling
- controls in non-mouse mode:
  - use the touchpad borders as arrow keys
  - double tap on one of the borders triggers run mode
  - tap into the center area triggers the use-action (ENTER)
  - double-tap into the center area triggers the lookat-action ('u')
  - long press into the center area shows inventory in grim ('i')
  - a fling in the center area skips the current sentence ('.')

TODO: Instead of hardcoding the keys, they should be mapped later.

Note that passing events from onTouch() to the GestureListener does not seem to work correctly (most double-taps are ignored). Instead onTouchEvent() is used now which worked much better with the GestureListener.
2012-04-30 19:11:32 +02:00
tobias
654ccc883c ANDROID: import backends/platform/android from ScummVM 2012-04-30 19:04:24 +02:00