fix(macos): Mouse input broken in-game (#2550)

Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
Vithorio Polten
2024-06-12 18:26:02 -03:00
committed by GitHub
parent f68de7da93
commit 02ddbefd44
8 changed files with 305 additions and 72 deletions

View File

@@ -672,6 +672,18 @@ namespace platf {
input_t
input();
/**
* @brief Gets the current mouse position on screen
* @param input The input_t instance to use.
* @return util::point_t (x, y)
*
* EXAMPLES:
* ```cpp
* auto [x, y] = get_mouse_loc(input);
* ```
*/
util::point_t
get_mouse_loc(input_t &input);
void
move_mouse(input_t &input, int deltaX, int deltaY);
void