From c0ab7cab4f6fe8ba84cf970f8b5f3b43ee93f43b Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Mon, 2 Oct 2023 18:57:50 -0400 Subject: [PATCH] [PS] Force stick values near edge to round up to max --- main/adapter/wired/ps.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/adapter/wired/ps.c b/main/adapter/wired/ps.c index 27cf3f8f..5b4c7894 100644 --- a/main/adapter/wired/ps.c +++ b/main/adapter/wired/ps.c @@ -44,10 +44,10 @@ static DRAM_ATTR const uint8_t ps_mouse_axes_idx[ADAPTER_MAX_AXES] = static DRAM_ATTR const struct ctrl_meta ps_axes_meta[ADAPTER_MAX_AXES] = { - {.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x7F, .abs_min = 0x80}, - {.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x7F, .abs_min = 0x80, .polarity = 1}, - {.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x7F, .abs_min = 0x80}, - {.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x7F, .abs_min = 0x80, .polarity = 1}, + {.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x90, .abs_min = 0x90}, + {.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x90, .abs_min = 0x90, .polarity = 1}, + {.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x90, .abs_min = 0x90}, + {.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x90, .abs_min = 0x90, .polarity = 1}, {.size_min = 0, .size_max = 255, .neutral = 0x00, .abs_max = 0xFF, .abs_min = 0x00}, {.size_min = 0, .size_max = 255, .neutral = 0x00, .abs_max = 0xFF, .abs_min = 0x00}, };