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

Android mouse problems #153

Open
mens9935 opened this issue Sep 17, 2022 · 4 comments · May be fixed by #158
Open

Android mouse problems #153

mens9935 opened this issue Sep 17, 2022 · 4 comments · May be fixed by #158

Comments

@mens9935
Copy link

mens9935 commented Sep 17, 2022

Samsung Galaxy A01 Core, Android 10 GO
"Pressing RMB pauses the game
Pause in inventory(Game menu, save/load/options and etc.)
But before that, the cursor mode (movement / information / attack) changes both in the game and in the inventory"
Tv box A95X MAX android 8.1 aosp
"The mouse does not work completely. The cursor could be changed from the keyboard with the M key. In the inventory, no action can be performed. do not inspect the item or throw it away. Pressing the right mouse button closes the game."

Different devices react to the mouse in the game in different ways. These are not my devices, but I hope you understand the pattern. I will add complaints as they come in if needed.
P.s The first person replaced the mouse with another one and the game, when RMB was pressed, also began to close the game. M key works like RMB

@alexbatalov
Copy link
Owner

I cannot reproduce your issue on my phone, but there are indeed some devices (probably running certain Android versions) where RMB acts as a back button. Can you please check if #158 fixes these issues.

@mens9935
Copy link
Author

mens9935 commented Oct 1, 2022

While one person was responding, RMB does nothing for him now, but RMB is not pressed either. I read the description of SDL2::hint, which describes in detail what you added, for correct operation you also need to catch keydown events with the SDL_SCANCODE_AC_BACK keycode, but I think you know better
https://metacpan.org/pod/SDL2::tips

@alexbatalov alexbatalov linked a pull request Oct 2, 2022 that will close this issue
@alexbatalov
Copy link
Owner

Please check latest build, probably will help (in case back button key event is generated with mouse as source).

@mens9935
Copy link
Author

mens9935 commented Oct 3, 2022

Still not working. RMB does not change cursor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants