Background for Skyrim SE
Member of the Input script
intfunctionGetMappedKey(stringcontrol, intdeviceType=0xff)NativeGlobal

[DEV SERVER] Loading description...


Caveats

CK Wiki - Notes

None


Parameters

stringcontrol

CK Wiki Description

The name of the controls as a string. Valid controls listed below.

intdeviceType=0xff

CK Wiki Description

The device type used. Valid devices listed below.


Examples

Int iForwardKey = Input.GetMappedKey("Forward")
Int[] Property iDxScanCode Auto ; 43 elements
String[] Property sControlName Auto ; Also 43 elements that indices will correspond. Elements must be filled in creation Kit.

Function RecordControlKeys()
    Int iIndex = sControlName.Length
    While iIndex > 0
        iIndex -= 1
        iDxScanCode[iIndex] = Input.GetMappedKey(sControlName[iIndex])
    EndWhile
EndFunction

Auto-Generated Example

string myString__control
int myInt__deviceType

int returnedValue = Input.GetMappedKey(myString__control, myInt__deviceType)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.