Controls: Add a setting for the threshold used to map analog stick inputs to digital buttons

This commit is contained in:
Henrik Rydgård committed 2026-03-02 22:50:15 +01:00
1 parent 6df47225dd
commit e780e32f98
49 files changed
+108 -14

No files matched your search

+1 -1
View File
@@ -419,7 +419,7 @@ bool KeyMappingNewMouseKeyDialog::key(const KeyInput &key) {
// Only used during the bind process. In other places, it's configurable for some types of axis, like trigger.
const float AXIS_BIND_THRESHOLD = 0.75f;
const float AXIS_BIND_RELEASE_THRESHOLD = 0.35f; // Used during mapping only to detect a "key-up" reliably.
const float AXIS_BIND_RELEASE_THRESHOLD = 0.35f; // Used during mapping only to detect a "key-up" reliably (hysteresis).
void KeyMappingNewKeyDialog::axis(const AxisInput &axis) {
if (time_now_d() < delayUntil_)