From 9493d3e9c998b78c7a588f3a6ca8a1d72f06f1d7 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 11 May 2023 23:44:08 +1000 Subject: [PATCH] USB/GunCon2: Adjust calibration timer Credit to @pcnimdock for debugging. --- pcsx2/USB/usb-lightgun/guncon2.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcsx2/USB/usb-lightgun/guncon2.cpp b/pcsx2/USB/usb-lightgun/guncon2.cpp index 5b105a1799..069349566d 100644 --- a/pcsx2/USB/usb-lightgun/guncon2.cpp +++ b/pcsx2/USB/usb-lightgun/guncon2.cpp @@ -33,7 +33,8 @@ namespace usb_lightgun { GUNCON2_FLAG_PROGRESSIVE = 0x0100, - GUNCON2_CALIBRATION_DELAY = 9 + GUNCON2_CALIBRATION_DELAY = 12, + GUNCON2_CALIBRATION_REPORT_DELAY = 5, }; enum : u32 @@ -288,7 +289,7 @@ namespace usb_lightgun out.pos_y = us->calibration_pos_y; us->calibration_timer--; - if (us->calibration_timer == 0) + if (us->calibration_timer < GUNCON2_CALIBRATION_REPORT_DELAY) { out.pos_x = 0; out.pos_y = 0;