fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

GH-100: Initial implementation of arrow key actions (resolves #100). #102

Closed duhrer closed 8 months ago

duhrer commented 8 months ago

This pull adds actions to simulate keyboard navigation using arrow keys. This is a requirement for #84.

See #100 for more context.

duhrer commented 8 months ago

I added functions for analog thumb sticks and buttons. I've been testing the buttons with the d-pad.

For anyone else who wants to try, here are two pages that support grid-based navigation using arrow keys:

  1. Fluid OSK text input demo
  2. Launchpad Slide Puzzle
duhrer commented 8 months ago

I've been testing the thumb stick functions with a speed factor of 1.5, which is probably what I'll use when I rework the bindings for #84.

I'm not overly happy with the "cutoff" that we use to prevent "jitter" on noisy sticks. You still get a few extra scroll actions when the stick bounces back hard, and it's far too easy to trigger the other axis while trying to move along a single axis.

I may introduce a second cutoff for this (eventually these should become preferences, ideally when we rework the configuration panel).

duhrer commented 8 months ago

@jobara if you have a moment to try this, I'd appreciate the feedback. Otherwise I will merge this on my own and continue refining this in the onscreen keyboard work (#84).

duhrer commented 8 months ago

I reran the last CI build, it failed with a very suspiciously low-level error (no jQuery) that we've not seen before.