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