fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Add "Action Launcher" (resolves #101) #112

Closed duhrer closed 8 months ago

duhrer commented 8 months ago

See #101 for background.

duhrer commented 8 months ago

@jobara, We had one available button left, so button 1 (circle on a PS controller) is bound to the new action launcher for testing (this will be cleaned up when I redo the config panel). I have confirmed that all actions work, including testing the arrow actions with the onscreen keyboard.

This is the first use of a new modal that will eventually replace the existing configuration panel (so that the configuration can be updated using the controller itself). I have tested preserving/restoring focus, tab trapping while open, escape to close, and everything else I could think of.

duhrer commented 8 months ago

A little more detail on the relevant default bindings, the shoulder bumpers are basically tab navigation simulators, and button 0 (x on a PS controller) is "click". You should also be able to entirely operate the modal with those gamepad controls.

duhrer commented 8 months ago

OK, I hallucinated adding the button to the default config earlier. I actually did it now. If you "Restore Defaults" in the config menu, things will be as I described earlier.

duhrer commented 8 months ago

I understand people's time is tight, I will self-merge this and put out a call for wider participation in a QA effort as part of the larger 1.0 release.