Skip to content
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

let ports set default controls #795

Merged
merged 10 commits into from
Jan 29, 2025

Conversation

briaguya-ai
Copy link
Collaborator

@briaguya-ai briaguya-ai commented Jan 21, 2025

before we had all of our default mappings hardcoded in the factories

this pr moves them out into a new ControllerDefaultMappings class, which ports can optionally instantiate on their own with their own default mappings

this class makes it into everything as an optional parameter in the ControlDeck constructor

if a port wants to continue to use the built-in defaults no changes are needed on the port side

soh testing PR with no soh-side changes:

starship testing PR setting new default mappings:

@briaguya-ai briaguya-ai marked this pull request as ready for review January 21, 2025 00:03
@briaguya-ai briaguya-ai marked this pull request as draft January 21, 2025 00:05
@briaguya-ai briaguya-ai marked this pull request as ready for review January 21, 2025 00:08
@Kenix3 Kenix3 merged commit 50eb906 into Kenix3:main Jan 29, 2025
5 checks passed
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.

2 participants