From bda9abf8b9c74844cb30edb32e81543cbd5ae89d Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 24 Dec 2025 15:29:17 +1100 Subject: [PATCH] add scroll input capturing --- platform.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform.d b/platform.d index 9a0bc48..b207155 100644 --- a/platform.d +++ b/platform.d @@ -133,7 +133,7 @@ enum Input : u32 // Mouse MouseMotion = 0x147, - LeftClick = 0x148, MiddleClick = 0x149, RightClick = 0x14A, + LeftClick = 0x148, MiddleClick = 0x149, RightClick = 0x14A, ScrollUp = 0x14B, ScrollDown = 0x14C, }; alias I = Input; @@ -1282,6 +1282,8 @@ HandleEvents(void* window_ptr) case Button1: input = Input.LeftClick; break; case Button2: input = Input.MiddleClick; break; case Button3: input = Input.RightClick; break; + case Button4: input = Input.ScrollUp; break; + case Button5: input = Input.ScrollDown; break; default: break; }