- Found in:
- F4SE
Description
Documentation Comment
returns keycode bound to a control for given device
Valid controls:
"Forward", "Back", "Strafe Left", "Strafe Right", "Move", "Look", "Left Attack/Block", "Right Attack/Block"
"Activate", "Ready Weapon", "Tween Menu", "Toggle POV", "Zoom Out", "Zoom In", "Jump", "Sprint", "Shout",
"Sneak", "Run", "Toggle Always Run", "Auto-Move", "Favorites", "Hotkey1", "Hotkey2", "Hotkey3", "Hotkey4",
"Hotkey5", "Hotkey6", "Hotkey7", "Hotkey8", "Quicksave", "Quickload", "Wait", "Journal", "Pause", "Screenshot",
"Multi-Screenshot", "Console", "CameraPath", "Quick Inventory", "Quick Magic", "Quick Stats", "Quick Map"
Valid device types:
(default) auto detect
0 keyboard
1 mouse
2 gamepad
Parameters
stringcontrol
CK Wiki Description
a string for the control you wish to get the mapped key for.
intdeviceType=0xff
CK Wiki Description
an integer corresponding to the device you request the mapped key tied to the specified control.
Examples
Input.GetMappedKey("Jump", 2) ; my XBOX controller uses this key for "Jump"!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 Fallout 4 Creation Kit Wiki
