Difference between revisions of "GetMappedKey - Input"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JustinOther
m (→‎Examples: Previous example assumed Input had been imported.)
imported>JustinOther
m (→‎Parameters: Added hex codes for asDeviceType)
Line 57: Line 57:
:*Zoom Out
:*Zoom Out
*DeviceType: The device type used. Valid devices listed below.
*DeviceType: The device type used. Valid devices listed below.
:*255 = Auto detect (Default)
:*255 = 0xFF = Auto detect (Default)
:*0 = Keyboard
:*0 = 0x01 = Keyboard
:*1 = Mouse
:*1 = 0x02 = Mouse
:*2 = Gamepad
:*2 = 0x03 = Gamepad
 
== Return Value ==
== Return Value ==
Returns [[Input_Script#DXScanCodes|DXScanCode]] bound to a control for given device as an integer.
Returns [[Input_Script#DXScanCodes|DXScanCode]] bound to a control for given device as an integer.

Revision as of 18:08, 3 October 2012

SKSE Member of: Input Script

Minimum required SKSE Version: 1.06.00

Returns the DXScanCodes bound to a control for given device. (This function requires SKSE)

Syntax

Int Function GetMappedKey(String Control, Int DeviceType = 0xFF) Global Native

Parameters

  • Control: The name of the controls as a string. Valid controls listed below.
  • Activate
  • Auto-Move
  • Back
  • CameraPath
  • Console
  • Favorites
  • Forward
  • Hotkey1
  • Hotkey2
  • Hotkey3
  • Hotkey4
  • Hotkey5
  • Hotkey6
  • Hotkey7
  • Hotkey8
  • Journal
  • Jump
  • Left Attack/Block
  • Look
  • Move
  • Multi-Screenshot
  • Pause
  • Quick Inventory
  • Quick Magic
  • Quick Map
  • Quick Stats
  • Quickload
  • Quicksave
  • Ready Weapon
  • Right Attack/Block
  • Run
  • Screenshot
  • Shout
  • Sneak
  • Sprint
  • Strafe Left
  • Strafe Right
  • Toggle Always Run
  • Toggle POV
  • Tween Menu
  • Wait
  • Zoom In
  • Zoom Out
  • DeviceType: The device type used. Valid devices listed below.
  • 255 = 0xFF = Auto detect (Default)
  • 0 = 0x01 = Keyboard
  • 1 = 0x02 = Mouse
  • 2 = 0x03 = Gamepad

Return Value

Returns DXScanCode bound to a control for given device as an integer.

Examples

Int iForwardKey = Input.GetMappedKey("Forward")

Notes

None

See Also