From b719cabd088988e6f1ab71813aecc3ec1d2dc371 Mon Sep 17 00:00:00 2001 From: james palmer Date: Mon, 16 Jan 2023 21:08:28 +0000 Subject: [PATCH] dev/mouse: use 32 bit integer for storing pressure. this actually fixes the bug, previous commit only worked with my debug prints. ask the compiler, again... --- inc/dev/mouse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/dev/mouse.h b/inc/dev/mouse.h index 83d986d..207d23f 100644 --- a/inc/dev/mouse.h +++ b/inc/dev/mouse.h @@ -4,7 +4,7 @@ struct dev_mouse { Uint16 x; Uint16 y; - Uint8 pressure; + Uint32 pressure; Uint8 state; Uint8 hwstate; -- 2.38.5