liballeg / allegro5

The official Allegro 5 git repository. Pull requests welcome!
https://liballeg.org
Other
1.84k stars 281 forks source link

Generalize mouse emulation in touch input #951

Open dos1 opened 5 years ago

dos1 commented 5 years ago

Right now each touch driver has its own copy of generate_touch_input_event function and the whole mouse emulation machinery.

Most of this code is pretty much copy'n'pasted in a few places. It should be moved somewhere up the hierarchy and used by Allegro somewhere outside the code of the actual drivers.

SiegeLord commented 5 years ago

Ostensibly mouse emulation API is unstable, and outright removal might not be unreasonable. Have you found a good use for it?

dos1 commented 5 years ago

I've enabled touch support in some of my older games by using it - however, it wouldn't be hard to actually do it properly, so I'm not very attached to it.