[PR #566] [MERGED] ControllerInterface: Customizable axis scaling and deadzone size #31

Closed
opened 2026-01-29 19:06:08 +00:00 by claunia · 0 comments
Owner

📋 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: masterHead: analog-controller


📝 Commits (2)

  • 6b7c068 ControllerInterface: Implement axis scaling for axis-to-axis mappings
  • 293c2f5 ControllerInterface: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/stenzek/duckstation/pull/566 **Author:** [@ggrtk](https://github.com/ggrtk) **Created:** 6/23/2020 **Status:** ✅ Merged **Merged:** 6/23/2020 **Merged by:** [@stenzek](https://github.com/stenzek) **Base:** `master` ← **Head:** `analog-controller` --- ### 📝 Commits (2) - [`6b7c068`](https://github.com/stenzek/duckstation/commit/6b7c068f8325d77802c9970f6d254e0768046c33) ControllerInterface: Implement axis scaling for axis-to-axis mappings - [`293c2f5`](https://github.com/stenzek/duckstation/commit/293c2f50cdab738025f6342aaf12d3946138155b) ControllerInterface: Make axis-to-button deadzone customizable ### 📊 Changes **4 files changed** (+47 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 19:06:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/duckstation#31