VOGONS


First post, by internetp

User metadata
Rank Newbie
Rank
Newbie

I'm looking for a way to rebind double clicks into single clicks and rebind single clicks into nothing. It's part of a project I've cobbled together to give full touchscreen support for some games on dosbox, I have everything working but obviously tapping the screen automatically clicks and for some games that's a problem. Hence why I need the games to ignore single clicks and treat double clicks as single clicks.

Option that could work:
1) Modify the touch-enabled SDL dll to use the desired behavior
2) A dos program that sits between dosbox and the game could modify inputs?
3) Some dosbox option/conf line I have missed?
4) A windows program or option (windows 😎 that achieves this behavior

#1 will definitely work but I've never modified SDL so if there's an easier option than sifting through c++ and recompiling the dll I'd prefer to use it. Anyone have any idea?

Reply 2 of 3, by internetp

User metadata
Rank Newbie
Rank
Newbie
Dominus wrote:

Start with Ny's patch of Dosbox to support SDL2 which in turn brings touch support...

Unfortunately, NY's patch is not really suitable for my purposes as it's missing a few necessary features and has some bugs. I'm using a custom dosbox exe that has a variable for mouse sensitivity aspect ratio, for example, as some games make the mouse move twice as fast vertically as horizontally and it messes up the position calculation. NY's version also seems to refuse to run in fullscreen in Windows 8 and is really struggling to get the position correct on the touch screen.

It's also kind of beside the point anyway as someone's already modified SDL 1.2 to include touchscreen support (http://www.ftlgame.com/forum/viewtopic.php?t=26647) and it seems to work perfectly well. The only snag is that some games require you to move the mouse somewhere without clicking, which isn't possible with that DLL. Hence why I'm asking whether there's a way to remap double-clicks to single-clicks and single clicks to nothing, that's all I need to make it work perfectly.

Reply 3 of 3, by internetp

User metadata
Rank Newbie
Rank
Newbie

I ended up just modifying the touch-enabled version of SDL 1.2 I linked earlier, works a charm. Might add some extra buttons and toggleable options in the dead space around the left and right hand side in fullscreen, maybe create specialised versions for each game I want to put on the tablet.