From 985cf1ad4bfcec89662805b2148f0bcc0a0edf98 Mon Sep 17 00:00:00 2001 From: Amaryllis Kulla Date: Tue, 1 Feb 2022 21:56:10 +0100 Subject: [PATCH] doc: Add MKXP.mouse_in_window --- doc/extension_doc.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/extension_doc.md b/doc/extension_doc.md index 9a3caa7..3edf81f 100644 --- a/doc/extension_doc.md +++ b/doc/extension_doc.md @@ -39,5 +39,10 @@ dataPathOrg=dancingdragon dataPathApp=skyborn ``` +## MKXP.mouse_in_window() +returns: Boolean + +Returns true if the mouse cursor is currently within the game window, false otherwise. + ## Arbitrary key states Use `MKXP.raw_key_states` to get the current byte array of keystates, then call `#getbyte(scancode)` with `scancode` being one of the constants defined in `SDL_scancode_map.rb`. **0** means the key is released, **1** that it is pressed.