mirror of
				https://github.com/coop-deluxe/sm64coopdx.git
				synced 2025-10-30 08:01:01 +00:00 
			
		
		
		
	djui_hud_is_mouse_locked()
Same as before but is
This commit is contained in:
		
							parent
							
								
									d0cd64cb05
								
							
						
					
					
						commit
						bcb705b309
					
				
					 6 changed files with 11 additions and 11 deletions
				
			
		|  | @ -3916,7 +3916,7 @@ end | ||||||
| 
 | 
 | ||||||
| --- @return boolean | --- @return boolean | ||||||
| --- Returns if the cursor is hidden and constrained to the window | --- Returns if the cursor is hidden and constrained to the window | ||||||
| function djui_hud_get_mouse_locked() | function djui_hud_is_mouse_locked() | ||||||
|     -- ... |     -- ... | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -3140,13 +3140,13 @@ Returns the y coordinate of the mouse relative to the screen | ||||||
| 
 | 
 | ||||||
| <br /> | <br /> | ||||||
| 
 | 
 | ||||||
| ## [djui_hud_get_mouse_locked](#djui_hud_get_mouse_locked) | ## [djui_hud_is_mouse_locked](#djui_hud_is_mouse_locked) | ||||||
| 
 | 
 | ||||||
| ### Description | ### Description | ||||||
| Returns if the cursor is hidden and constrained to the window | Returns if the cursor is hidden and constrained to the window | ||||||
| 
 | 
 | ||||||
| ### Lua Example | ### Lua Example | ||||||
| `local booleanValue = djui_hud_get_mouse_locked()` | `local booleanValue = djui_hud_is_mouse_locked()` | ||||||
| 
 | 
 | ||||||
| ### Parameters | ### Parameters | ||||||
| - None | - None | ||||||
|  | @ -3155,7 +3155,7 @@ Returns if the cursor is hidden and constrained to the window | ||||||
| - `boolean` | - `boolean` | ||||||
| 
 | 
 | ||||||
| ### C Prototype | ### C Prototype | ||||||
| `bool djui_hud_get_mouse_locked(void);` | `bool djui_hud_is_mouse_locked(void);` | ||||||
| 
 | 
 | ||||||
| [:arrow_up_small:](#) | [:arrow_up_small:](#) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -770,7 +770,7 @@ | ||||||
|    - [djui_hud_get_mouse_y](functions-3.md#djui_hud_get_mouse_y) |    - [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_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_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_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_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) |    - [djui_hud_get_mouse_buttons_pressed](functions-3.md#djui_hud_get_mouse_buttons_pressed) | ||||||
|  |  | ||||||
|  | @ -297,7 +297,7 @@ f32 djui_hud_get_raw_mouse_y(void) { | ||||||
|     return mouse_y; |     return mouse_y; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool djui_hud_get_mouse_locked(void) { | bool djui_hud_is_mouse_locked(void) { | ||||||
|     return gDjuiHudLockMouse; |     return gDjuiHudLockMouse; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -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| */ | /* |description|Returns the y coordinate of the mouse relative to the screen|descriptionEnd| */ | ||||||
| f32 djui_hud_get_raw_mouse_y(void); | f32 djui_hud_get_raw_mouse_y(void); | ||||||
| /* |description|Returns if the cursor is hidden and constrained to the window|descriptionEnd| */ | /* |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| */ | /* |description|Sets if the cursor is hidden and constrained to the window|descriptionEnd| */ | ||||||
| void djui_hud_set_mouse_locked(bool locked); | void djui_hud_set_mouse_locked(bool locked); | ||||||
| /* |description|Returns the flags of the mouse buttons held down|descriptionEnd| */ | /* |description|Returns the flags of the mouse buttons held down|descriptionEnd| */ | ||||||
|  |  | ||||||
|  | @ -12698,17 +12698,17 @@ int smlua_func_djui_hud_get_raw_mouse_y(UNUSED lua_State* L) { | ||||||
|     return 1; |     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; } |     if (L == NULL) { return 0; } | ||||||
| 
 | 
 | ||||||
|     int top = lua_gettop(L); |     int top = lua_gettop(L); | ||||||
|     if (top != 0) { |     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; |         return 0; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     lua_pushboolean(L, djui_hud_get_mouse_locked()); |     lua_pushboolean(L, djui_hud_is_mouse_locked()); | ||||||
| 
 | 
 | ||||||
|     return 1; |     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_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_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_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_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_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); |     smlua_bind_function(L, "djui_hud_get_mouse_buttons_pressed", smlua_func_djui_hud_get_mouse_buttons_pressed); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Cooliokid956
						Cooliokid956