First post, by grazzt
Ive been trying to port dosbox over to the HP touchpad, and its been going ok, but one weird problem has arisen.
What I want to add is if the touch screen is held > an arbitrary time, then it should register as a right click. (i even have added a two finger touch as right click, same problem)
So what Ive done is at buttondown is save the time, and at buttonup calculate how long it was down. Then send the approriate SDL_PRESSED followed by a SDL_RELEASED.
If you move your finger around the screen, it counts as mouse movement, and only when you lift your finger is a click generated.
Thing is, in about half the games I try, no clicks (whether left or right) are ever registered by the game running.
In the other half of the games, it works as expected.
Eg. Master of Magic, Master of Orion, Warcraft, Civilization all work perfectly.
XCOM, Tie Fighter, Ravenloft never register any clicks. In these games though, mouse movement works as expected.
Dont know if its my coding (good chance), or the games, or what.. Just confused. 😒
Any ideas?