UsingGamepad - Game

From the Fallout4 CreationKit Wiki
Revision as of 14:13, 20 November 2015 by imported>Plplecuyer (→‎Return Value)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 consoles

Examples

if UsingGamepad()
  Debug.Trace("Using gamepad!")
else
  Debug.Trace("Using keyboard and mouse!")
endIf

See Also