alanwoolley/CorsixTH-Android

Right mouse click from Bluetooth mouse (possibly USB mouse too) not picked up

Closed this issue · 3 comments

When CorsixTH works in Desktop and Mouse mode (Settings->Experimental->Controls Mode->Desktop (mouse & keyboard)) pressing right mouse button triggers a "back" action.

Playing with longpress as right mouse button is inefficient when a 2 button mouse is at hand.

I looked for a howto and found this thread:

http://stackoverflow.com/questions/10041295/android-usb-mouse-right-click-correct-behaviour-ics/29311126#29311126

I know the guy pelya who commented below with a suggestion has recently made progress in obtaining mouse2 functionality in previously also working as back key Teeworlds - an application who he ports to Android.

This is the link for @pelya 's commit that fixed the right mouse button for him:

pelya/commandergenius@8a747fc

Perhaps you might find it hseful to resove this on CorsixTH

Thanks @imachine. I agree with your assessment - it looks like the right click appears to the activity as a back button press, which would simply need to be wired to SDL as a right mouse button.

I'm in the process of writing the new controls for the next version which separate the mouse and touch controls. This should fix a lot of the outstanding control issues and allow us to get rid of the manual control mode option in the settings. I'll be pushing out some alpha builds shortly so we can test this scenario again then and implement this fix if still necessary.

... 8 years later, I've finally managed to complete the work to separate the touch and mouse controls. Right mouse clicks should be detected and processed correctly now.