diff --git a/autogen/lua_definitions/functions.lua b/autogen/lua_definitions/functions.lua index 365e9c465..ab6f9d16a 100644 --- a/autogen/lua_definitions/functions.lua +++ b/autogen/lua_definitions/functions.lua @@ -3916,7 +3916,7 @@ end --- @return boolean --- Returns if the cursor is hidden and constrained to the window -function djui_hud_get_mouse_locked() +function djui_hud_is_mouse_locked() -- ... end diff --git a/docs/lua/functions-3.md b/docs/lua/functions-3.md index 05443a347..8146364cd 100644 --- a/docs/lua/functions-3.md +++ b/docs/lua/functions-3.md @@ -3140,13 +3140,13 @@ Returns the y coordinate of the mouse relative to the screen
-## [djui_hud_get_mouse_locked](#djui_hud_get_mouse_locked) +## [djui_hud_is_mouse_locked](#djui_hud_is_mouse_locked) ### Description Returns if the cursor is hidden and constrained to the window ### Lua Example -`local booleanValue = djui_hud_get_mouse_locked()` +`local booleanValue = djui_hud_is_mouse_locked()` ### Parameters - None @@ -3155,7 +3155,7 @@ Returns if the cursor is hidden and constrained to the window - `boolean` ### C Prototype -`bool djui_hud_get_mouse_locked(void);` +`bool djui_hud_is_mouse_locked(void);` [:arrow_up_small:](#) diff --git a/docs/lua/functions.md b/docs/lua/functions.md index 1f708793d..b995cb5cb 100644 --- a/docs/lua/functions.md +++ b/docs/lua/functions.md @@ -770,7 +770,7 @@ - [djui_hud_get_mouse_y](functions-3.md#djui_hud_get_mouse_y) - [djui_hud_get_raw_mouse_x](functions-3.md#djui_hud_get_raw_mouse_x) - [djui_hud_get_raw_mouse_y](functions-3.md#djui_hud_get_raw_mouse_y) - - [djui_hud_get_mouse_locked](functions-3.md#djui_hud_get_mouse_locked) + - [djui_hud_is_mouse_locked](functions-3.md#djui_hud_is_mouse_locked) - [djui_hud_set_mouse_locked](functions-3.md#djui_hud_set_mouse_locked) - [djui_hud_get_mouse_buttons_down](functions-3.md#djui_hud_get_mouse_buttons_down) - [djui_hud_get_mouse_buttons_pressed](functions-3.md#djui_hud_get_mouse_buttons_pressed) diff --git a/src/pc/djui/djui_hud_utils.c b/src/pc/djui/djui_hud_utils.c index a00e8401b..31db875d2 100644 --- a/src/pc/djui/djui_hud_utils.c +++ b/src/pc/djui/djui_hud_utils.c @@ -297,7 +297,7 @@ f32 djui_hud_get_raw_mouse_y(void) { return mouse_y; } -bool djui_hud_get_mouse_locked(void) { +bool djui_hud_is_mouse_locked(void) { return gDjuiHudLockMouse; } diff --git a/src/pc/djui/djui_hud_utils.h b/src/pc/djui/djui_hud_utils.h index 1b5382a91..9972510b1 100644 --- a/src/pc/djui/djui_hud_utils.h +++ b/src/pc/djui/djui_hud_utils.h @@ -93,7 +93,7 @@ f32 djui_hud_get_raw_mouse_x(void); /* |description|Returns the y coordinate of the mouse relative to the screen|descriptionEnd| */ f32 djui_hud_get_raw_mouse_y(void); /* |description|Returns if the cursor is hidden and constrained to the window|descriptionEnd| */ -bool djui_hud_get_mouse_locked(void); +bool djui_hud_is_mouse_locked(void); /* |description|Sets if the cursor is hidden and constrained to the window|descriptionEnd| */ void djui_hud_set_mouse_locked(bool locked); /* |description|Returns the flags of the mouse buttons held down|descriptionEnd| */ diff --git a/src/pc/lua/smlua_functions_autogen.c b/src/pc/lua/smlua_functions_autogen.c index 81cb52433..f44d836fd 100644 --- a/src/pc/lua/smlua_functions_autogen.c +++ b/src/pc/lua/smlua_functions_autogen.c @@ -12698,17 +12698,17 @@ int smlua_func_djui_hud_get_raw_mouse_y(UNUSED lua_State* L) { return 1; } -int smlua_func_djui_hud_get_mouse_locked(UNUSED lua_State* L) { +int smlua_func_djui_hud_is_mouse_locked(UNUSED lua_State* L) { if (L == NULL) { return 0; } int top = lua_gettop(L); if (top != 0) { - LOG_LUA_LINE("Improper param count for '%s': Expected %u, Received %u", "djui_hud_get_mouse_locked", 0, top); + LOG_LUA_LINE("Improper param count for '%s': Expected %u, Received %u", "djui_hud_is_mouse_locked", 0, top); return 0; } - lua_pushboolean(L, djui_hud_get_mouse_locked()); + lua_pushboolean(L, djui_hud_is_mouse_locked()); return 1; } @@ -37336,7 +37336,7 @@ void smlua_bind_functions_autogen(void) { smlua_bind_function(L, "djui_hud_get_mouse_y", smlua_func_djui_hud_get_mouse_y); smlua_bind_function(L, "djui_hud_get_raw_mouse_x", smlua_func_djui_hud_get_raw_mouse_x); smlua_bind_function(L, "djui_hud_get_raw_mouse_y", smlua_func_djui_hud_get_raw_mouse_y); - smlua_bind_function(L, "djui_hud_get_mouse_locked", smlua_func_djui_hud_get_mouse_locked); + smlua_bind_function(L, "djui_hud_is_mouse_locked", smlua_func_djui_hud_is_mouse_locked); smlua_bind_function(L, "djui_hud_set_mouse_locked", smlua_func_djui_hud_set_mouse_locked); smlua_bind_function(L, "djui_hud_get_mouse_buttons_down", smlua_func_djui_hud_get_mouse_buttons_down); smlua_bind_function(L, "djui_hud_get_mouse_buttons_pressed", smlua_func_djui_hud_get_mouse_buttons_pressed);