djui_hud_is_mouse_locked()

Same as before but is
This commit is contained in:
Cooliokid956 2025-10-23 03:22:37 -05:00
parent d0cd64cb05
commit bcb705b309
6 changed files with 11 additions and 11 deletions

View file

@ -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

View file

@ -3140,13 +3140,13 @@ Returns the y coordinate of the mouse relative to the screen
<br />
## [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:](#)

View file

@ -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)

View file

@ -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;
}

View file

@ -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| */

View file

@ -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);