From 21fd5519c862120b1b672aa3c72824ceaf4f9996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Luiz=20Alvares?= Date: Tue, 20 Apr 2021 21:18:07 -0300 Subject: [PATCH] update docs: include `get_mouse_state` method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Luiz Alvares --- docs/core_state.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/core_state.md b/docs/core_state.md index 0426f92..aa29e21 100644 --- a/docs/core_state.md +++ b/docs/core_state.md @@ -120,6 +120,12 @@ when `is_down` argument is also given: function Nene.CoreState:get_scancode(scancode: SDL_Scancode, is_down: facultative(boolean) ): boolean ``` +## Nene.CoreState:get_mouse_state (function) +returns the mouse coordinates relative to window and a bitmask state of mouse buttons +```lua +function Nene.CoreState:get_mouse_state(): (Nene.Math.Vec2, uint32) +``` + ## Nene.CoreState:load_font (function) try to load a font from a file it returns: