-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Feature/mobile key codes #4326
base: develop
Are you sure you want to change the base?
Feature/mobile key codes #4326
Conversation
For now, I have only added and tested the dpad keys to get some feedback. |
+1 for this feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for this, a great addition.
We should consider adding support for DPad into the focus manager so the apps are traversable on a TV device. But this PR enables such work so let's land it :).
I had wondered if this needed to be "gamepad support" in the API but I think this probably just falls to documentation.
Talking of which I think the costs in driver/mobile/key.go need appropriate documentation and it should include:
//
// Since: 2.5
to mark when they were added. I think I missed this for KeyBack last release!
Thanks for looking at this - a great approach to starting gamepad support. I think it needs a bit of docs as noted inline but neat solution. |
Should I also add the remaining supported keycodes(Gamepad, play/pause, camera etc?) to this PR? |
There are a few assumptions thrown in there. What is a camera or play/pause button on a desktop? |
you can connect any bluetooth remote or gamepad to any desktop or mobile device and get the same key events. |
@andydotxyz anything else required to merge this? |
Then maybe this isn't mobile specific after all? If it's expected that this should work on all platforms then maybe landing it in mobile space was not the right approach - apologies if it was my assumption
I guess it needs to have complete support for whatever platforms should be supported. If it is mobile specific then the iOS driver looks to be missing code. If however it's not mobile specific (as in above message) then maybe it needs to be revised for working-anyway codes? |
Description:
Add support for android gamepad(or tv remote) keycodes. These are basically required for apps running on android TV.
Checklist: