Input Script: Difference between revisions
Jump to navigation
Jump to search
Reverted To List
imported>Egocarib (Added 'see also' links to other input-related functions and events) |
imported>CraftySentinel (Reverted To List) |
||
| 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 189: | Line 176: | ||
== Notes == | == Notes == | ||
*The above are for a US keyboard. Others, such as AZERTY, might not match up depending upon the key(s) in question. | *The above are for a US keyboard. Others, such as AZERTY, might not match up depending upon the key(s) in question. | ||
== See Also == | == See Also == | ||
[[RegisterForKey - Form]] | [[RegisterForKey - Form]] | ||
[[OnKeyDown - Form]] | |||
[[OnKeyUp - Form]] | |||
[[ | [[Category:Scripting]] | ||
[[Category:Papyrus]] | |||
[[Category:Script Objects]] | |||
[[Category:SKSE]] | |||
[[Category:SKSE Script Objects]] | |||