From 5d7b92d391bcddf98cc94b99f932e391cd3cbb40 Mon Sep 17 00:00:00 2001 From: hikari Date: Thu, 24 Mar 2022 18:40:23 +0200 Subject: [PATCH] sys/windows: add mouse states masks --- core/sys/windows/types.odin | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin index 9a4a1ab5e..63e66ee83 100644 --- a/core/sys/windows/types.odin +++ b/core/sys/windows/types.odin @@ -416,6 +416,15 @@ WMSZ_BOTTOM :: 6 WMSZ_BOTTOMLEFT :: 7 WMSZ_BOTTOMRIGHT :: 8 +// Key State Masks for Mouse Messages +MK_LBUTTON :: 0x0001 +MK_RBUTTON :: 0x0002 +MK_SHIFT :: 0x0004 +MK_CONTROL :: 0x0008 +MK_MBUTTON :: 0x0010 +MK_XBUTTON1 :: 0x0020 +MK_XBUTTON2 :: 0x0040 + _IDC_APPSTARTING := rawptr(uintptr(32650)) _IDC_ARROW := rawptr(uintptr(32512)) _IDC_CROSS := rawptr(uintptr(32515))