-
Notifications
You must be signed in to change notification settings - Fork 97
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 a function to set key events #102
Comments
Hello @YoavHortman! Are you meaning something like this? https://github.com/NoriginMedia/Norigin-Spatial-Navigation#setkeymap If not then perhaps you could provide some examples or snippets of what and how you are intending to achieve it, so we can better help you out? It kind of sounds to me like you are wanting to simulate key events based on what is inherently virtual key events stemming from a tertiary device; Not entirely sure if that is within the scope of this library to handle, but let's see what you have. |
I think this code example would answer your question:
Essentially I'm being forced to simulate keyboard events when navigation comes from a different device, I don't want to change the keymap, I want to be able trigger a navigation regardless of a key. How that might look:
A second option:
I think this would remove the need to have the keymap override and would add the flexibility to navigate for any reason. |
Is your feature request related to a problem? Please describe.
The application I'm building can be controlled both from the keyboard (or tv remote) and from a phone (connected via socket)
Describe the solution you'd like
I would like to be able to extend the events that are being listened to, not only the key codes.
Describe alternatives you've considered
For now I'm dispatching fake keyboard events when I receive a navigation command from the phone.
Additional context
I think it would make sense to do something similar to setKeyMap, but for events.
The text was updated successfully, but these errors were encountered: