|
Mouse emulation on android |
jmasterx
Member #11,410
October 2009
|
I was wondering if there are any plans to add this for the android port like iOS. For myself, I plan to port my game to android but agui is designed to work with mouse events. It would be very useful to have mouse emulation on android. Thanks Agui GUI API -> https://github.com/jmasterx/Agui |
amarillion
Member #940
January 2001
|
Could agui be made to understand touch events? I think that would be a nicer solution for the long-term. -- |
George24
Member #14,359
June 2012
|
I have not tested this, but is mouse emulation mode not working with Android? If it works, you could set: al_set_mouse_emulation_mode(ALLEGRO_MOUSE_EMULATION_TRANSPARENT);
|
jmasterx
Member #11,410
October 2009
|
You're right George looks like it is implemented: Maybe there are other parts of that section that should be updated.. Agui GUI API -> https://github.com/jmasterx/Agui |
Polybios
Member #12,293
October 2010
|
For things like a ScrollArea, you'll need genuine touch support anyway, I guess. |
jmasterx
Member #11,410
October 2009
|
Surprisingly I got around this by simulating mousewheel events on scroll areas on mobile and then having an option to generate inertia events for those events. It works really well on iOS. Should work the same on Android. Agui GUI API -> https://github.com/jmasterx/Agui |
|