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.
- 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.