UsingGamepad - Game

From the CreationKit Wiki
Revision as of 18:28, 15 July 2017 by imported>Neoh4x0r (→‎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 using a gamepad. False if using keyboard/mouse.
  • Always True for consoles

Examples

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

See Also