From 5e913b0e9ebd2e9106e90eae050459f62d0ba9c8 Mon Sep 17 00:00:00 2001 From: Silent Date: Tue, 12 Apr 2022 23:40:38 +0200 Subject: [PATCH] XInputSource: Fix triggers input range --- pcsx2/Frontend/XInputSource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/Frontend/XInputSource.cpp b/pcsx2/Frontend/XInputSource.cpp index b790feffa9..1565d9ccf1 100644 --- a/pcsx2/Frontend/XInputSource.cpp +++ b/pcsx2/Frontend/XInputSource.cpp @@ -400,8 +400,8 @@ void XInputSource::CheckForStateChanges(u32 index, const XINPUT_STATE& new_state CHECK_AXIS(sThumbLY, AXIS_LEFTY, -32768, -32767); CHECK_AXIS(sThumbRX, AXIS_RIGHTX, 32768, 32767); CHECK_AXIS(sThumbRY, AXIS_RIGHTY, -32768, -32767); - CHECK_AXIS(bLeftTrigger, AXIS_LEFTTRIGGER, 128, 127); - CHECK_AXIS(bRightTrigger, AXIS_RIGHTTRIGGER, 128, 127); + CHECK_AXIS(bLeftTrigger, AXIS_LEFTTRIGGER, 0, 255); + CHECK_AXIS(bRightTrigger, AXIS_RIGHTTRIGGER, 0, 255); #undef CHECK_AXIS