Table of Contents

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

PapyrusScriptDispatcher

Methods

GetMappedControl(int)

returns name of control bound to given keycode, or "" if unbound

public static Task<string> GetMappedControl(int keycode)

Parameters

keycode int

Returns

Task<string>

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

control string
deviceType int

Returns

Task<int>

GetNthKeyPressed(int)

for walking over the pressed keys

public static Task<int> GetNthKeyPressed(int n)

Parameters

n int

Returns

Task<int>

GetNumKeysPressed()

how many keys are pressed

public static Task<int> GetNumKeysPressed()

Returns

Task<int>

HoldKey(int)

holds down the specified key until released

public static Task HoldKey(int dxKeycode)

Parameters

dxKeycode int

Returns

Task

IsKeyPressed(int)

returns whether a key is pressed

public static Task<bool> IsKeyPressed(int dxKeycode)

Parameters

dxKeycode int

Returns

Task<bool>

ReleaseKey(int)

releases the specified key

public static Task ReleaseKey(int dxKeycode)

Parameters

dxKeycode int

Returns

Task

TapKey(int)

taps the specified key

public static Task TapKey(int dxKeycode)

Parameters

dxKeycode int

Returns

Task