mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #1146] [MERGED] XInput: Fix mapping triggers to axes #345
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stenzek/duckstation/pull/1146
Author: @CookiePLMonster
Created: 12/4/2020
Status: ✅ Merged
Merged: 12/5/2020
Merged by: @stenzek
Base:
master← Head:xinput-axis-fix📝 Commits (1)
39768edXInput: Fix mapping triggers to axes📊 Changes
1 file changed (+9 additions, -1 deletions)
View changed files
📝
src/frontend-common/xinput_controller_interface.cpp(+9 -1)📄 Description
For #1078 I had to rescale NeGcon buttons to accept inputs from
-1..1instead of0..1, so in the case of triggers inputs had to be expanded appropriately. I did this for SDL but forgot to do it for XInput.Fixes #1136
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.