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

Don't auto-remap and disable forwarding while configuring joystick #394

Merged
merged 5 commits into from
Jul 28, 2023

Conversation

rafaellehmkuhl
Copy link
Member

Fix #381
Fix #382

@rafaellehmkuhl rafaellehmkuhl requested a review from rjehangir July 28, 2023 17:56
Copy link
Member

@Williangalvani Williangalvani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I haven't tested but I don't see any potential for breakages...

const inputOldValue = oldInputMapping[index]
// For the index that previously holded the selected value, use the former value of the modified index
const undefinedInput = { protocol: undefined, value: undefined }
// Let unnassigned indexes that previously holded the selected value
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this "Let" misplaced? I'm having a hard time interpreting this sentence.
plus "hold is an irregular verb, so I think the correct form here would be "held" 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's indeed confusing.

Changing to Let at 'unnassigned' state indexes that previously held the selected value.

@rafaellehmkuhl rafaellehmkuhl merged commit cfceda8 into bluerobotics:master Jul 28, 2023
@rafaellehmkuhl rafaellehmkuhl deleted the dont-auto-remap branch July 28, 2023 18:28
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.

Don't auto-remap on joystick mapping Disable joystick-protocol-forwarding when in configuration page
2 participants