ANDROID: Alternative Touchscreen Mouse
|Reported by:||SF/mcnicholls||Owned by:||anguslees|
I have added an alternative mouse implementation that handles right click with a long press.
This implementation will:
On a touch down event send no ScummVM event on. Any touch move events will send a ScummVM mouse move. A touch up will send a left button down ScummVM event followed by a left button up ScummVM event. If you have touched the screen for longer than a second and don't move it too much then it will perform haptic feedback to let you know it will perform a right click when you release the touch.
This implementation can be triggered from the menu key, which now presents an Android menu as well as showing the ScummVM menu. This Android menu allows you to switch between the current and alternative behaviour.
This implementation may not be a correct fit for all engines, but can serve as a starting point to find something that works.
Ticket imported from: #3104277. Ticket imported from: patches/1354.