Skip to content

Commit

Permalink
update docs: include get_mouse_state method
Browse files Browse the repository at this point in the history
Signed-off-by: André Luiz Alvares <andrluiz.alvares.alvares84@gmail.com>
  • Loading branch information
Andre-LA committed Apr 21, 2021
1 parent f5c9664 commit 21fd551
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/core_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ when `is_down` argument is also given:
function Nene.CoreState:get_scancode(scancode: SDL_Scancode, is_down: facultative(boolean) <comptime>): 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:
Expand Down

0 comments on commit 21fd551

Please sign in to comment.