From 6e055d307124b370a98179333fc6cc195ec1fef9 Mon Sep 17 00:00:00 2001 From: H0neyBadger Date: Tue, 27 Oct 2020 09:08:18 +0100 Subject: [PATCH] Fix Switch Dualshock 4 touchpad resolution (#355) --- switch/src/io.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/switch/src/io.cpp b/switch/src/io.cpp index abf01d3..476f8a5 100644 --- a/switch/src/io.cpp +++ b/switch/src/io.cpp @@ -8,9 +8,9 @@ #include "io.h" -// https://github.com/matlo/GIMX/blob/3af491c3b6a89c6a76c9831f1f022a1b73a00752/shared/gimxcontroller/include/ds4.h#L112 -#define DS4_TRACKPAD_MAX_X 1919 -#define DS4_TRACKPAD_MAX_Y 919 +// https://github.com/torvalds/linux/blob/41ba50b0572e90ed3d24fe4def54567e9050bc47/drivers/hid/hid-sony.c#L2742 +#define DS4_TRACKPAD_MAX_X 1920 +#define DS4_TRACKPAD_MAX_Y 942 #define SWITCH_TOUCHSCREEN_MAX_X 1280 #define SWITCH_TOUCHSCREEN_MAX_Y 720