Page 1 of 1

[Patch] Windows touch support (v1)

Posted: 15 Mar 2014 19:11
by CommanderZ
This patch tries to improve user experience when playing on Windows touchscreen devices (desktop Windows needed, Windows 8 RT is obviously not supported). For now, the focus is to achieve full comfortable playability on medium sized devices (10"+), smaller handheld tablets are not the priority.

(Planned) features:
  • Two finger panning in viewports. DONE
  • Tap-and-hold to open toolbar menus. DONE
  • Hide mouse cursor when using only touch. NOT YET
  • Two finger scrolling in scrollable lists. NOT YET
  • Make UI elements bigger. NOT YET
  • Improve on-screen keyboard. NOT YET
How to achieve best touchscreen experience (based on default settings):
  • Get the "OpenGFX BigGUI 2.0.0" GRF.
  • Increase font size at your own discretion (depends on screen size, about 50% bump works fine for me on a 13" screen).
  • Enable "Advanced Settings -> Interface -> Touch -> Open toolbar menu on long tap".
  • Increase "Advanced Settings -> Interface -> Interaction -> Map scrollwheel speed" to make the pich-to-zoom gesture more responsive (I like 10).
  • Enable "Advanced Settings -> Interface -> Interaction -> Reverse scroll direction".
The patch is against trunk r26400. Windows Platform SDK for Windows 7 or newer is required for the touchscreen support to be included in a build.

I will provide binaries upon request.

I welcome any feedback!

Re: [Patch] Windows touch support (v1)

Posted: 16 Mar 2014 17:15
by FLHerne
You might want to co-ordinate with pelya, who created the unofficial Android port - the UI behaviour changes would be quite handy for that. Assuming you haven't done so already. :wink:

Re: [Patch] Windows touch support (v1)

Posted: 29 Mar 2014 18:23
by Wolf01
FLHerne wrote:You might want to co-ordinate with pelya[...] :wink:
and with me too (you can find me in the official IRC channel) as I'm still thinking about a good way to get rid of the CTRL key when on touch screen :wink: :wink: