The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Android Right Mouse Button
AntTheAlchemist


Joined: 13 Feb 2015
Posts: 60
Location: UK
Usually the right mouse button mimics the back button, allowing normal apps to prompt the user what to do next (quit or otherwise).

In SDL, the right mouse button seems to force-close the app and returns to the home screen. No SDL_QUIT is triggered.

Is there any way intercept this behaviour like normal apps do?
AntTheAlchemist


Joined: 13 Feb 2015
Posts: 60
Location: UK
This is still a bug in 2.0.4. Surely, I'm not the only one using a mouse on the Android platform? It happens with an airmouse, and a traditional USB mouse. It happens on every Android application built with SDL, not just mine. But other apps treat the same right-click as a back button. Any help please?
Android Right Mouse Button
Owen Hogarth II
Guest

Hey ant
What's the expected behavior for right click on android?
On Wed, Jan 6, 2016, 10:12 AntTheAlchemist wrote:

Quote:
This is still a bug in 2.0.4. Surely, I'm not the only one using a mouse on the Android platform? It happens with an airmouse, and a traditional USB mouse. It happens on every Android application built with SDL, not just mine. But other apps treat the same right-click as a back button. Any help please?

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
AntTheAlchemist


Joined: 13 Feb 2015
Posts: 60
Location: UK
Hi Owen, I was beginning to think I was on my own here Smile

Right mouse click on Android usually behaves the same as the back button, which usually goes up a menu, brings up context menus, or prompts to exit if at the main menu. But from a programmer's perspective, it should produce a right mouse button event, so the programmer can decide what to do.

Anything would be better than the current behaviour, which is to force close the application without any chance to intercept with code.
Android Right Mouse Button
Ryan C. Gordon
Guest

Quote:
Anything would be better than the current behaviour, which is to force
close the application without any chance to intercept with code.

Yikes, that's clearly a bug. Would you mind noting this in Bugzilla so
we don't forget to look at it?

https://bugzilla.libsdl.org/enter_bug.cgi?product=SDL

Thanks,
--ryan.



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
AntTheAlchemist


Joined: 13 Feb 2015
Posts: 60
Location: UK
Finally found the cause of this bug.

https://bugzilla.libsdl.org/show_bug.cgi?id=3227

Just need a clean way to fix it.