mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
GLOBAL_MOUSE_DOWN/UP came from a Win32 WH_GETMESSAGE hook with its own held-button mask, which stayed "held" after an alt-tab and sent no release when the window lost capture. Register two handlers on the engine's mouse-down and mouse-up events with EventRegisterEx instead, at a priority above the interface and below the console and the loading-screen vetoes, and read IsMouseButtonDown from the engine's own held-button mask. Share the engine's button-name lookup as Frame::ClickEvents::ButtonNameForMask. IsMouseButtonDown(nil) now means any button, as documented. Add documentation descriptors and rewrite the stale API.md sections.