UsingGamepad - Game

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

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 UsingGamepad()
  Debug.Trace("Using gamepad!")
else
  Debug.Trace("Using keyboard and mouse!")
endIf

See Also[edit | edit source]