UsingGamepad - Game
Revision as of 17:00, 18 October 2011 by imported>Jlundin
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 a gamepad is plugged in. False if using keyboard/mouse.
- Always True for 360/PS3
Examples
if UsingGamepad()
Debug.Trace("Using gamepad!")
else
Debug.Trace("Using keyboard and mouse!")
endIf