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

Add action shortcut mapping for KEYCODE_DPAD_CENTER #5680

Open
1 task done
dzx-dzx opened this issue Dec 17, 2024 · 6 comments
Open
1 task done

Add action shortcut mapping for KEYCODE_DPAD_CENTER #5680

dzx-dzx opened this issue Dec 17, 2024 · 6 comments

Comments

@dzx-dzx
Copy link

dzx-dzx commented Dec 17, 2024

Is your feature request related to a problem? Please describe.
I'm trying to control my TV with scrcpy. The TV do respond to HOME(middle mouse) and BACK(right mouse) action, as well as navigation(Arrow keys). But its UI and native apps do not respond to either click or Enter (though installed third-party apps like kodi does) when I want to press the button in focus. After some testing, I find that manually running adb shell input keyevent KEYCODE_DPAD_CENTER does the job. So...

Describe the solution you'd like
Mapping left click or Enter to such keyevent

Describe alternatives you've considered
Implementing #4569 can do that?

Additional context
Add any other context or screenshots about the feature request here.

@rom1v
Copy link
Collaborator

rom1v commented Dec 17, 2024

But its UI and native apps do not respond to either click or Enter (though installed third-party apps like kodi does) when I want to press the button in focus

It does not respond to clicks? 😮

What about SPACE? and (out of curiosity) AKEYCODE_NUMPAD_ENTER?

@dzx-dzx
Copy link
Author

dzx-dzx commented Dec 17, 2024

@rom1v I do find it very strange, because it does seem to respond to a physical mouse's clicks. I will try what you suggested later.

@rom1v
Copy link
Collaborator

rom1v commented Dec 18, 2024

OK so it works in UHID mode? (scrcpy -M)

@dzx-dzx
Copy link
Author

dzx-dzx commented Dec 18, 2024

No...which is even more confusing to me. Upon reading the description I did expect it to function, but it didn't.

@dzx-dzx
Copy link
Author

dzx-dzx commented Dec 18, 2024

What about SPACE?

Oh, SPACE does work...partially. It(which maps to KEYCODE_SPACE?) only works on the main screen.

@dzx-dzx
Copy link
Author

dzx-dzx commented Dec 19, 2024

There's some personal information that I'd prefer not to give away, so can I contact you through email or something?

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

No branches or pull requests

2 participants