add scroll input capturing

This commit is contained in:
Matthew 2025-12-24 15:29:17 +11:00
parent 809814577d
commit bda9abf8b9

View File

@ -133,7 +133,7 @@ enum Input : u32
// Mouse // Mouse
MouseMotion = 0x147, MouseMotion = 0x147,
LeftClick = 0x148, MiddleClick = 0x149, RightClick = 0x14A, LeftClick = 0x148, MiddleClick = 0x149, RightClick = 0x14A, ScrollUp = 0x14B, ScrollDown = 0x14C,
}; };
alias I = Input; alias I = Input;
@ -1282,6 +1282,8 @@ HandleEvents(void* window_ptr)
case Button1: input = Input.LeftClick; break; case Button1: input = Input.LeftClick; break;
case Button2: input = Input.MiddleClick; break; case Button2: input = Input.MiddleClick; break;
case Button3: input = Input.RightClick; break; case Button3: input = Input.RightClick; break;
case Button4: input = Input.ScrollUp; break;
case Button5: input = Input.ScrollDown; break;
default: break; default: break;
} }