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

Wrong mapping of XBox 360 Controller #81

Open
vrguru opened this issue Apr 7, 2022 · 2 comments
Open

Wrong mapping of XBox 360 Controller #81

vrguru opened this issue Apr 7, 2022 · 2 comments
Labels

Comments

@vrguru
Copy link

vrguru commented Apr 7, 2022

Hi.

I have been using OIS 1.4 and recently upgraded to 1.5.1
Now it turns out that the mapping of an XBOX360 controller is absolutely remapped in a totally random way as I see it.

I built the console example and it shows the same thing.

Version 1.4:

OIS Version: 1.4.0
Release Name: 1.4.0
Manager: Win32InputManager
Total Keyboards: 1
Total Mice: 1
Total JoySticks: 1
        Device: OISKeyboard Vendor: Win32InputManager
        Device: OISMouse Vendor: Win32InputManager
        Device: OISJoyStick Vendor: Controller (XBOX 360 For Windows)

Creating Joystick 1
        Axes: 5
        Sliders: 0
        POV/HATs: 1
        Buttons: 10
        Vector3: 0
Startup done... Hit 'q' or ESC to exit.

Controller (XBOX 360 For Windows). Button Pressed # 0

Version 1.5:

*** OIS Console Demo App is starting up... ***
OIS Version: 1.5.1
Release Name: 1.5.0
Manager: Win32InputManager
Total Keyboards: 1
Total Mice: 1
Total JoySticks: 1
        Device: OISKeyboard Vendor: Win32InputManager
        Device: OISMouse Vendor: Win32InputManager
        Device: OISJoyStick Vendor: Controller (XBOX 360 For Windows)

Creating Joystick 1
        Axes: 6
        Sliders: 0
        POV/HATs: 1
        Buttons: 12
        Vector3: 0
Startup done... Hit 'q' or ESC to exit.

Controller (XBOX 360 For Windows). Button Pressed # 8

Lets just start there. Axis are also remapped (triggers).
We see that a different number of buttons are reported.
But most importantly, button A response is different.

Anyone else experiencing this?

@AnotherFoxGuy
Copy link

AnotherFoxGuy commented Sep 22, 2022

Anyone else experiencing this?

Yes, we ran into the same issue RigsOfRods/rigs-of-rods#2891

@Ybalrid
Copy link
Member

Ybalrid commented Sep 27, 2022

@AnotherFoxGuy Hi, I do not have a lot of free time to dig into the actual issue, but I would gladly review and merge a pull request that would fix it, if you or a developer from the ROR project wishes to contribute

@Ybalrid Ybalrid added the bug label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants