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| | {{FuncDescription|Set the client's input mode for the game.}} | ||
{{FuncSyntax|SetInputMode(InputMode)}} | {{FuncSyntax|SetInputMode(InputMode)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|InputMode| | {{FuncParam|InputMode|[[InputModes]]}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns nothing.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
SetInputMode(INPUT_GAME) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
=== Key === | |||
*[[SetInputMode]] | |||
*[[GetInputMode]] | |||
*[[IsCtrlPressed]] | |||
*[[IsShiftPressed]] | |||
*[[IsAltPressed]] | |||
*[[IsCmdPressed]] | |||
*[[SetIgnoreMoveInput]] | |||
*[[SetIgnoreLookInput]] | |||
*[[SetControlRotation]] | |||
*[[GetInputAxisValue]] |
Latest revision as of 09:23, 7 October 2020
Description
Set the client's input mode for the game.
Syntax
SetInputMode(InputMode)
Parameters
- InputMode
InputModes
Return Value
- This function returns nothing.
Example
SetInputMode(INPUT_GAME)