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

How can I use 'setKeyMap'? #100

Closed
KrooCiso opened this issue Oct 12, 2023 · 1 comment
Closed

How can I use 'setKeyMap'? #100

KrooCiso opened this issue Oct 12, 2023 · 1 comment

Comments

@KrooCiso
Copy link

Hello,
I want to use the remote control's 'back' button with a keycode of 10009.
How can I use 'setKeyMap' to configure it?
Where should this 'setKeyMap' be placed to make it work?
Can you provide a simple example?

@asgvard
Copy link
Collaborator

asgvard commented Oct 16, 2023

Hi.

This method can be called as soon as you initialize the navigation with init.

Documentation: https://github.com/NoriginMedia/Norigin-Spatial-Navigation#setkeymap
You can assign one or multiple key codes to the directions or enter handlers.

@asgvard asgvard closed this as completed Oct 16, 2023
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