Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize mouse emulation in touch input #951

Open
dos1 opened this Issue Oct 27, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@dos1
Copy link
Contributor

dos1 commented Oct 27, 2018

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

This comment has been minimized.

Copy link
Member

SiegeLord commented Oct 29, 2018

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

@dos1

This comment has been minimized.

Copy link
Contributor Author

dos1 commented Oct 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.