Difference between revisions of "Input Script"
→DXScanCodes
imported>CraftySentinel (→SKSE Global Functions: Added Get Mapped Control, Should contain all SKSE Functions upto 1.06.16) |
imported>Neoh4x0r |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
Input related functions. (These global functions require SKSE) | Input related functions. (These global functions require SKSE) | ||
== Definition == | == Definition == | ||
Line 11: | Line 5: | ||
== Properties == | == Properties == | ||
None | None | ||
== SKSE Global Functions == | == SKSE Global Functions == | ||
:'''Bool [[IsKeyPressed - Input|IsKeyPressed]](Int ''dxKeycode'')''' | |||
:*Returns whether a key is pressed | |||
:'''[[TapKey - Input|TapKey]](Int ''dxKeycode'')''' | |||
:*Taps the specified key | |||
:'''[[HoldKey - Input|HoldKey]](Int ''dxKeycode'')''' | |||
:*Holds down the specified key until released | |||
:'''[[ReleaseKey - Input|ReleaseKey]](Int ''dxKeycode'')''' | |||
:*Releases the specified key | |||
:'''Int [[GetNumKeysPressed - Input|GetNumKeysPressed]]()''' | |||
:*How many keys are pressed | |||
:'''Int [[GetNthKeyPressed - Input|GetNthKeyPressed]](Int ''n'')''' | |||
:*For walking over the pressed keys | |||
:'''Int [[GetMappedKey - Input|GetMappedKey]](String ''Control'', Int ''deviceType'')''' | |||
:*Returns dxKeycode bound to a control for given device | |||
| | |||
:'''String [[GetMappedControl - Input|GetMappedControl]](Int ''keycode'')''' | |||
:*Returns the name of the control bound to the given keycode ("" if unbound) | |||
== Member Functions == | == Member Functions == | ||
None | None | ||
== Events == | == Events == | ||
None | None | ||
== DXScanCodes == | == DXScanCodes == | ||
<source lang="html4strict"> Hex Dec Button | <source lang="html4strict"> Hex Dec Button | ||
Line 145: | Line 132: | ||
0x9D 157 Right Control | 0x9D 157 Right Control | ||
0xB5 181 NUM/ | 0xB5 181 NUM/ | ||
0xB7 183 SysRq / PtrScr | |||
0xB8 184 Right Alt | 0xB8 184 Right Alt | ||
0xC5 197 Pause | |||
0xC7 199 Home | 0xC7 199 Home | ||
0xC8 200 Up Arrow | 0xC8 200 Up Arrow | ||
Line 185: | Line 174: | ||
0x118 280 LT | 0x118 280 LT | ||
0x119 281 RT</source> | 0x119 281 RT</source> | ||
== Notes == | == Notes == | ||
*The | *The key codes are ordered as they appear on US QWERTY keyboards from left to right and top to bottom. | ||
*Other keyboards such as AZERTY, might not match up depending upon the key(s) in question. | |||
== See Also == | |||
[[RegisterForKey - Form]] | |||
[[OnKeyDown - Form]] | |||
[[OnKeyUp - Form]] | |||
[[Category:Scripting]] | |||
[[Category:Papyrus]] | |||
[[Category:Script Objects]] | |||
[[Category:SKSE]] | |||
[[Category:SKSE Script Objects]] |