SetInputMode: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetInputMode(InputMode)}} {{FuncParameters}} {{FuncParam|InputMode|__EDIT_ME__}} {{FuncReturnValu...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Set the client's input mode for the game.}}


{{FuncSyntax|SetInputMode(InputMode)}}
{{FuncSyntax|SetInputMode(InputMode)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|InputMode|__EDIT_ME__}}
{{FuncParam|InputMode|[[InputModes]]}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns nothing.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
SetInputMode(INPUT_GAME)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
=== Key ===
*[[SetInputMode]]
*[[GetInputMode]]
*[[IsCtrlPressed]]
*[[IsShiftPressed]]
*[[IsAltPressed]]
*[[IsCmdPressed]]
*[[SetIgnoreMoveInput]]
*[[SetIgnoreLookInput]]
*[[SetControlRotation]]
*[[GetInputAxisValue]]

Latest revision as of 09:23, 7 October 2020

SetInputMode

Type: Function
Context: Client
Introduced: v1.0

Description

Set the client's input mode for the game.

Syntax

SetInputMode(InputMode)

Parameters

Return Value

  • This function returns nothing.

Example

SetInputMode(INPUT_GAME)

See also

Key