Skip to content

patch xinput-map-native-sony-hid-reports-correctly could be generalized for other controllers #700

Closed

Description

@foriequal0

Assetto Corsa Rally (3917090) has a weird issue with hatswitch.
The game somehow incorrectly interprets the hat switch encoding (maybe by using raw hid report), and it can be fixed by using 0-7 range for hat switch encoding.

So I created an MR on upstream: https://gitlab.winehq.org/wine/wine/-/merge_requests/9796
and closed for v2: https://gitlab.winehq.org/foriequal0/wine/-/commits/mr%252Fwinebus-hatswitch
but hasn't created an MR for v2.

I was testing my patch locally by applying it on GE-Proton for a while, and I noticed that the patch can't be applied since GE-Proton-11-4, which includes this patch:
https://github.com/GloriousEggroll/proton-ge-custom/blob/251f376cc735db513fe1b541f36d772c93ca879f/patches/proton-ds5-haptic/0108-xinput-map-native-sony-hid-reports-correctly.patch

It does the similar job with my patch, but only for Sony controllers.
I think it can be generalized for other controllers with my patch if you want.

I think this issue doesn't apply to the issue template (you can think of this as some mix of discussion and informal PR), so I'm just writing in free form.

Activity

  1. GloriousEggroll commented on Aug 17, 2026

    @GloriousEggroll
    Owner

    i added the v2 patch functionality in 0fdd9b7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions