[MOD] Full touchscreen support
Posted: Sat Nov 29, 2014 11:31 pm
This mod fixes the touchscreen problem that makes the not move like you want it to and it adds gestures for space button (pause), right click and escape.
It is a custom SDL.dll that removes the relative mouse mode in fullscreen and that adds the gestures :
Pressing at the same place three times in a row (triple click) means Space.
Holding a finger on the screen for at least 750 milliseconds turns the next pressure to a right click (you can even add a click.mp3 into the FTL folder if you want to know when you can release the button).
Pressing the top of the screen, dragging to the bottom of the screen and releasing the finger means Escape.
You can download the modified file here :
http://db.orangedox.com/WKcGWPPW30vGJZONR0/FTL_SDL_touchscreen-v2.zip
Just copy the SDL.dll in the .zip into your FTL folder.
(libSDL is not specific to this game, so I hope I am allowed to upload it here; see the README-SDL.txt in FTL's licenses folder)
If you want to take a look at the modified source code, here you are : http://db.orangedox.com/b0pCoNdkSHv9Tretm0/FTL-touchscreen-v2_SDL-1.2.14.7z
You can find the original file here : http://www.libsdl.org/release/SDL-1.2.14-win32.zip
Version 2 : The touchscreen click behavior has been improved (using Windows 8 window events)
It is a custom SDL.dll that removes the relative mouse mode in fullscreen and that adds the gestures :
Pressing at the same place three times in a row (triple click) means Space.
Holding a finger on the screen for at least 750 milliseconds turns the next pressure to a right click (you can even add a click.mp3 into the FTL folder if you want to know when you can release the button).
Pressing the top of the screen, dragging to the bottom of the screen and releasing the finger means Escape.
You can download the modified file here :
http://db.orangedox.com/WKcGWPPW30vGJZONR0/FTL_SDL_touchscreen-v2.zip
Just copy the SDL.dll in the .zip into your FTL folder.
(libSDL is not specific to this game, so I hope I am allowed to upload it here; see the README-SDL.txt in FTL's licenses folder)
If you want to take a look at the modified source code, here you are : http://db.orangedox.com/b0pCoNdkSHv9Tretm0/FTL-touchscreen-v2_SDL-1.2.14.7z
You can find the original file here : http://www.libsdl.org/release/SDL-1.2.14-win32.zip
Version 2 : The touchscreen click behavior has been improved (using Windows 8 window events)