fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Add support for simulated arrow key presses... #100

Closed duhrer closed 8 months ago

duhrer commented 8 months ago

In order to implement #84 and #85, we need some means of simulating arrow key presses, so that users can more easily select keys from a grid layout. This ticket covers adding new (unbound) actions and testing it with the onscreen keyboard.

duhrer commented 8 months ago

My idea here is to generalise something like the "click" function to send arbitrary events, and then make variations for each arrow key (even though I suspect that we'd only really need up and down for the onscreen keyboard work).

An easy extra here is to add an action to send "escape" to the focused element, although this may not be all that useful depending on how non-trusted events bubble up to things like an enclosing modal dialogue. It's worth testing at any rate.