GetNthKeyPressed - Input

From the CreationKit Wiki
Revision as of 19:13, 9 October 2014 by imported>Terra Nova2
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: Input Script

Minimum required SKSE Version: 1.05.07

For walking over the pressed keys. (This function requires SKSE)

Syntax[edit | edit source]

int Function GetNthKeyPressed(int n) global native

Parameters[edit | edit source]

  • n : the Nth key pressed

Return Value[edit | edit source]

Returns the DXScanCode of the Nth key pressed as an Int. If no Nth key is pressed, -1 is returned.

Examples[edit | edit source]

Int iHotkey = Input.GetNthKeyPressed(0)

Notes[edit | edit source]

  • The index of the first key pressed is 0.
  • The function checks for any keys held down the moment the function is called. Source

See Also[edit | edit source]