Difference between revisions of "UsingGamepad - Game"
Jump to navigation
Jump to search
imported>Neoh4x0r |
imported>Neoh4x0r |
||
Line 13: | Line 13: | ||
== Return Value == | == Return Value == | ||
* On PC, True if using a gamepad. False if using keyboard/mouse. | * On PC, True if using a gamepad. False if using keyboard/mouse. | ||
* Always True for | * Always True for consoles | ||
== Examples == | == Examples == |
Latest revision as of 18:28, 15 July 2017
Member of: Game Script
Returns true if we're using a gamepad.
Syntax[edit | edit source]
bool Function UsingGamepad() native global
Parameters[edit | edit source]
None
Return Value[edit | edit source]
- On PC, True if using a gamepad. False if using keyboard/mouse.
- Always True for consoles
Examples[edit | edit source]
if Game.UsingGamepad()
Debug.Trace("Using gamepad!")
else
Debug.Trace("Using keyboard and mouse!")
endIf