Skip to content

GPIO-based Input mode and profile select on boot#1620

Open
rmaccrimm wants to merge 75 commits intoOpenStickCommunity:mainfrom
rmaccrimm:gpio_input_mode_select
Open

GPIO-based Input mode and profile select on boot#1620
rmaccrimm wants to merge 75 commits intoOpenStickCommunity:mainfrom
rmaccrimm:gpio_input_mode_select

Conversation

@rmaccrimm
Copy link
Copy Markdown
Contributor

This PR implements a couple of related features I've been working on:

  1. Use GPIO pins for boot input mode select #1425
  2. Option to select a profile to load along with the input mode

My goal with the second was to be able to set per-console profiles but not require a hotkey to be set to use them (to reduce the risk of accidentally triggering the hotkey mid-game).

This is accomplished with new configuration separate from the existing boot input-mode mapping, called BootModeOptions. It includes a flag to enable/disable the functionality and I've done my best to maintain the old behaviour when it's disabled. The web-config looks like this (it's an entirely new page as that was just easier, largely based off the pin mapping page):

Screenshot 2026-03-17 at 11 38 03 AM

Some other non-functional changes I made:

  • Reworked the BootAction type to try to reduce the number of switch statements to update
  • move the INPUT_MODES object from SettingsPage.jsx to a new file so it would be easier to re-use on a new page
  • changed what appears to be a random typo I came across (REVERSE_UP_DEFUALT)

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

Successfully merging this pull request may close these issues.

1 participant