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

SDL3: Scrolling song selection works everywhere on Android. #28234

Open
shiumano opened this issue May 19, 2024 · 6 comments
Open

SDL3: Scrolling song selection works everywhere on Android. #28234

shiumano opened this issue May 19, 2024 · 6 comments

Comments

@shiumano
Copy link
Contributor

Type

Cosmetic

Bug description

Once the game is started, dragging the song selection with the mouse does not drag correctly
No problem with touch input.
Am I the only one having this problem?

Screenshots or videos

screen-20240519-223657-.mp4

Version

2024.519.1

Logs

logs.zip

@bdach
Copy link
Collaborator

bdach commented May 20, 2024

Well I can reproduce. Something or other to do with relative mode being enabled, this doesn't happen if relative mode is off.

Also doesn't happen if you do a very "strict drag" as in, mouse down, start moving mouse, stop moving mouse, mouse up. This starts to happen if you wanna do an "inertia" scroll by releasing mouse during the drag and then moving it elsewhere.

@smoogipoo smoogipoo changed the title Scrolling song selection works everywhere on Android. SDL3: Scrolling song selection works everywhere on Android. May 29, 2024
@shiumano
Copy link
Contributor Author

shiumano commented Jan 5, 2025

@peppy
Copy link
Member

peppy commented Jan 6, 2025

Well I can reproduce. Something or other to do with relative mode being enabled, this doesn't happen if relative mode is off.

@bdach What is related mode in this context? An android system setting?

@bdach
Copy link
Collaborator

bdach commented Jan 6, 2025

It's literally the framework "relative mouse mode" believe it or not. Why it affects input in this way I do not know and did not want to find out hence why I left this issue be.

@Susko3
Copy link
Member

Susko3 commented Jan 6, 2025

To me, it looks like clicking/moving the mouse is generating keyboard arrow key events.

The runtime log from OP shows: "Unknown SDL key: SDL_SCANCODE_SELECT, SDLK_SELECT". Which is AKEYCODE_DPAD_CENTER in Android: https://github.com/libsdl-org/SDL/blob/main/src/video/android/SDL_androidkeyboard.c#L97.

Nearby scancodes to that include the AKEYCODE_DPAD_{UP,DOWN,LEFT,RIGHT}, reported to us as keyboard arrow keys.

I'm unable to reproduce as my phone OS is bugged and doesn't properly support relative mode.

@shiumano
Copy link
Contributor Author

shiumano commented Jan 7, 2025

I am currently unable to reproduce this using the method described in the OP.
If you are saying this is a cross key input, is #31441 relevant?

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

No branches or pull requests

4 participants