Skip to content

feat(CapabilityMap): add config for inverting axis values#534

Merged
ShadowApex merged 1 commit intomainfrom
shadowapex/invert-axis
Feb 25, 2026
Merged

feat(CapabilityMap): add config for inverting axis values#534
ShadowApex merged 1 commit intomainfrom
shadowapex/invert-axis

Conversation

@ShadowApex
Copy link
Contributor

@ShadowApex ShadowApex commented Feb 23, 2026

This change adds a new inverse option for axes, which can allow a user to invert the axis value of a matching direction.

E.g.

mapping:
  - name: Invert left stick vertical
    source_events:
      - gamepad:
          axis:
            name: LeftStick
    target_event:
      gamepad:
        axis:
          name: LeftStick
          direction: vertical
          invert: true

Fixes #532

@ShadowApex ShadowApex requested a review from pastaq February 23, 2026 18:12
@ShadowApex ShadowApex force-pushed the shadowapex/invert-axis branch 2 times, most recently from 9663294 to a107df6 Compare February 23, 2026 18:18
Copy link
Contributor

@pastaq pastaq left a comment

Choose a reason for hiding this comment

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

I'm not going to hold up the MR, but "invert" would be better as its a command of what to do in the config vice being a description of the property's original state.

@ShadowApex ShadowApex force-pushed the shadowapex/invert-axis branch from a107df6 to fb2e7cd Compare February 24, 2026 17:29
@ShadowApex ShadowApex merged commit e946601 into main Feb 25, 2026
6 checks passed
@ShadowApex ShadowApex deleted the shadowapex/invert-axis branch February 25, 2026 04:39
@github-actions
Copy link
Contributor

🎉 This PR is included in version 0.75.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(feat): capabilty map axis flip

2 participants