Difference between revisions of "UsingGamepad - Game"
Jump to navigation
Jump to search
imported>Jlundin |
imported>Sagitarius22 |
||
Line 17: | Line 17: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
if UsingGamepad() | if Game.UsingGamepad() | ||
Debug.Trace("Using gamepad!") | Debug.Trace("Using gamepad!") | ||
else | else |
Revision as of 15:57, 23 February 2012
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 Game.UsingGamepad()
Debug.Trace("Using gamepad!")
else
Debug.Trace("Using keyboard and mouse!")
endIf