Difference between revisions of "GetNthKeyPressed - Input"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JustinOther
m (→‎Return Value: Link to DXScanCode section of Input Script)
imported>JustinOther
m (N'th Δ Nth)
Line 10: Line 10:


== Parameters ==
== Parameters ==
*n : the N'th key pressed
*n : the Nth key pressed


== Return Value ==
== Return Value ==
Returns the [[Input_Script#DXScanCodes|DXScanCode]] of the N'th key pressed as an Int. If no N'th key is pressed, -1 is returned.
Returns the [[Input_Script#DXScanCodes|DXScanCode]] of the Nth key pressed as an Int. If no Nth key is pressed, -1 is returned.


== Examples ==
== Examples ==

Revision as of 11:21, 28 September 2012

SKSE Member of: Input Script

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

Syntax

int Function GetNthKeyPressed(int n) global native

Parameters

  • n : the Nth key pressed

Return Value

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

Examples

Int iHotkey = Input.GetNthKeyPressed(0)

Notes

  • The index of the first key pressed is 0.

See Also