IsMouseCursorEnabled: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|IsMouseCursorEnabled()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == E...")
 
No edit summary
 
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Check if the player's mouse cursor is enabled.}}


{{FuncSyntax|IsMouseCursorEnabled()}}
{{FuncSyntax|IsMouseCursorEnabled()}}
Line 8: Line 8:
{{FuncNoParam}}
{{FuncNoParam}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns ''true'' on success.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang='Lua'>
if IsMouseCursorEnabled() == false then -- If mouse cursor is not enabled
    ShowMouseCursor(true) -- Enable it
end
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:ClientMouseFunctions}}

Latest revision as of 10:30, 2 March 2020

IsMouseCursorEnabled

Type: Function
Context: Client
Introduced: v1.0

Description

Check if the player's mouse cursor is enabled.

Syntax

IsMouseCursorEnabled()

Parameters

  • This function has no parameters.

Return Value

  • Returns true on success.

Example

if IsMouseCursorEnabled() == false then -- If mouse cursor is not enabled
    ShowMouseCursor(true) -- Enable it
end

See also