From 0e700eeaa06b30efc9abfe06303f548f62c045c9 Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Sun, 17 Mar 2024 04:51:17 +0000 Subject: [PATCH] Change dpd_valid_fg values --- src/input/emulated/WPADController.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/emulated/WPADController.cpp b/src/input/emulated/WPADController.cpp index 819596abf..0912e338e 100644 --- a/src/input/emulated/WPADController.cpp +++ b/src/input/emulated/WPADController.cpp @@ -311,7 +311,7 @@ void WPADController::KPADRead(KPADStatus_t& status, const BtnRepeat& repeat) if (has_position()) { - status.dpd_valid_fg = 1; + status.dpd_valid_fg = 2; const auto position = get_position(); @@ -324,6 +324,8 @@ void WPADController::KPADRead(KPADStatus_t& status, const BtnRepeat& repeat) status.vec.y = delta.y; status.speed = glm::length(delta); } + else + status.dpd_valid_fg = 0; switch (type()) {