Class InputScript
- Namespace
- SkyrimForge.Papyrus
- Assembly
- SkyrimForge.Game.dll
Functions and comments from Input.psc.
public static class InputScript
- Inheritance
-
InputScript
- Inherited Members
Properties
Dispatcher
The dispatcher that binds this script to a form and calls the functions and properties that have no generated member.
public static PapyrusScriptDispatcher Dispatcher { get; }
Property Value
Methods
GetMappedControl(int)
returns name of control bound to given keycode, or "" if unbound
public static Task<string> GetMappedControl(int keycode)
Parameters
keycodeint
Returns
GetMappedKey(string, int)
Valid device types: (default) auto detect 0 keyboard 1 mouse 2 gamepad
public static Task<int> GetMappedKey(string control, int deviceType = 255)
Parameters
Returns
GetNthKeyPressed(int)
for walking over the pressed keys
public static Task<int> GetNthKeyPressed(int n)
Parameters
nint
Returns
GetNumKeysPressed()
how many keys are pressed
public static Task<int> GetNumKeysPressed()
Returns
HoldKey(int)
holds down the specified key until released
public static Task HoldKey(int dxKeycode)
Parameters
dxKeycodeint
Returns
IsKeyPressed(int)
returns whether a key is pressed
public static Task<bool> IsKeyPressed(int dxKeycode)
Parameters
dxKeycodeint
Returns
ReleaseKey(int)
releases the specified key
public static Task ReleaseKey(int dxKeycode)
Parameters
dxKeycodeint
Returns
TapKey(int)
taps the specified key
public static Task TapKey(int dxKeycode)
Parameters
dxKeycodeint