mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #566] [MERGED] ControllerInterface: Customizable axis scaling and deadzone size #31
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/566
Author: @ggrtk
Created: 6/23/2020
Status: ✅ Merged
Merged: 6/23/2020
Merged by: @stenzek
Base:
master← Head:analog-controller📝 Commits (2)
6b7c068ControllerInterface: Implement axis scaling for axis-to-axis mappings293c2f5ControllerInterface: Make axis-to-button deadzone customizable📊 Changes
4 files changed (+47 additions, -5 deletions)
View changed files
📝
src/frontend-common/common_host_interface.cpp(+6 -0)📝
src/frontend-common/controller_interface.h(+6 -0)📝
src/frontend-common/sdl_controller_interface.cpp(+25 -5)📝
src/frontend-common/sdl_controller_interface.h(+10 -0)📄 Description
Feature/workaround to accommodate for differences between the logical range of reporting on the analog sticks of modern controllers and original PS1 analog controllers. Ballpark for a good scaling value is somewhere around 1.30~1.40 but every controller is a bit different so it'll be mostly up to user preference.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.