Table of Contents

Class Input

Namespace
TaleWorlds.InputSystem
Assembly
TaleWorlds.InputSystem.dll
public static class Input
Inheritance
Input
Inherited Members

Fields

NumberOfKeys

public const int NumberOfKeys = 256

Field Value

int

OnControllerTypeChanged

public static Action<Input.ControllerTypes> OnControllerTypeChanged

Field Value

Action<Input.ControllerTypes>

OnGamepadActiveStateChanged

public static Action OnGamepadActiveStateChanged

Field Value

Action

Properties

ControllerType

public static Input.ControllerTypes ControllerType { get; }

Property Value

Input.ControllerTypes

DebugInput

public static IInputContext DebugInput { get; }

Property Value

IInputContext

DeltaMouseScroll

public static float DeltaMouseScroll { get; }

Property Value

float

DesktopResolution

public static Vec2 DesktopResolution { get; }

Property Value

Vec2

GyroX

public static float GyroX { get; }

Property Value

float

GyroY

public static float GyroY { get; }

Property Value

float

GyroZ

public static float GyroZ { get; }

Property Value

float

InputManager

public static IInputManager InputManager { get; }

Property Value

IInputManager

InputState

public static InputState InputState { get; }

Property Value

InputState

IsAnyTouchActive

public static bool IsAnyTouchActive { get; }

Property Value

bool

IsControllerConnected

public static bool IsControllerConnected { get; }

Property Value

bool

IsGamepadActive

public static bool IsGamepadActive { get; }

Property Value

bool

IsMouseActive

public static bool IsMouseActive { get; }

Property Value

bool

IsMousePositionUpdated

public static bool IsMousePositionUpdated { get; }

Property Value

bool

IsMouseScrollChanged

public static bool IsMouseScrollChanged { get; }

Property Value

bool

MouseMoveX

public static float MouseMoveX { get; }

Property Value

float

MouseMoveY

public static float MouseMoveY { get; }

Property Value

float

MousePositionPixel

public static Vec2 MousePositionPixel { get; }

Property Value

Vec2

MousePositionRanged

public static Vec2 MousePositionRanged { get; }

Property Value

Vec2

MouseSensitivity

public static float MouseSensitivity { get; }

Property Value

float

Resolution

public static Vec2 Resolution { get; }

Property Value

Vec2

Methods

ClearKeys()

public static void ClearKeys()

GetClickKeys()

public static InputKey[] GetClickKeys()

Returns

InputKey[]

GetClipboardText()

public static string GetClipboardText()

Returns

string

GetFirstKeyDownInRange(int)

public static int GetFirstKeyDownInRange(int startKeyNo)

Parameters

startKeyNo int

Returns

int

GetFirstKeyPressedInRange(int)

public static int GetFirstKeyPressedInRange(int startKeyNo)

Parameters

startKeyNo int

Returns

int

GetFirstKeyReleasedInRange(int)

public static int GetFirstKeyReleasedInRange(int startKeyNo)

Parameters

startKeyNo int

Returns

int

GetGyroX()

public static float GetGyroX()

Returns

float

GetGyroY()

public static float GetGyroY()

Returns

float

GetGyroZ()

public static float GetGyroZ()

Returns

float

GetKeyState(InputKey)

public static Vec2 GetKeyState(InputKey key)

Parameters

key InputKey

Returns

Vec2

GetMouseMoveX()

public static float GetMouseMoveX()

Returns

float

GetMouseMoveY()

public static float GetMouseMoveY()

Returns

float

GetVirtualKeyCode(InputKey)

public static int GetVirtualKeyCode(InputKey key)

Parameters

key InputKey

Returns

int

Initialize(IInputManager, IInputContext)

public static void Initialize(IInputManager inputManager, IInputContext debugInput)

Parameters

inputManager IInputManager
debugInput IInputContext

IsControlOrShiftNotDown()

public static bool IsControlOrShiftNotDown()

Returns

bool

IsControllerKey(InputKey)

public static bool IsControllerKey(InputKey key)

Parameters

key InputKey

Returns

bool

IsDown(InputKey)

public static bool IsDown(this InputKey key)

Parameters

key InputKey

Returns

bool

IsKeyDown(InputKey)

public static bool IsKeyDown(InputKey key)

Parameters

key InputKey

Returns

bool

IsKeyDownImmediate(InputKey)

public static bool IsKeyDownImmediate(InputKey key)

Parameters

key InputKey

Returns

bool

IsKeyPressed(InputKey)

public static bool IsKeyPressed(InputKey key)

Parameters

key InputKey

Returns

bool

IsKeyReleased(InputKey)

public static bool IsKeyReleased(InputKey key)

Parameters

key InputKey

Returns

bool

IsPlaystation(ControllerTypes)

public static bool IsPlaystation(this Input.ControllerTypes controllerType)

Parameters

controllerType Input.ControllerTypes

Returns

bool

IsPressed(InputKey)

public static bool IsPressed(this InputKey key)

Parameters

key InputKey

Returns

bool

IsReleased(InputKey)

public static bool IsReleased(this InputKey key)

Parameters

key InputKey

Returns

bool

PressKey(InputKey)

public static void PressKey(InputKey key)

Parameters

key InputKey

SetClipboardText(string)

public static void SetClipboardText(string text)

Parameters

text string

SetCursorFriction(float)

public static void SetCursorFriction(float frictionValue)

Parameters

frictionValue float

SetLightbarColor(float, float, float)

public static void SetLightbarColor(float red, float green, float blue)

Parameters

red float
green float
blue float

SetMousePosition(int, int)

public static void SetMousePosition(int x, int y)

Parameters

x int
y int

SetRumbleEffect(float[], float[], int, float[], float[], int)

public static void SetRumbleEffect(float[] lowFrequencyLevels, float[] lowFrequencyDurations, int numLowFrequencyElements, float[] highFrequencyLevels, float[] highFrequencyDurations, int numHighFrequencyElements)

Parameters

lowFrequencyLevels float[]
lowFrequencyDurations float[]
numLowFrequencyElements int
highFrequencyLevels float[]
highFrequencyDurations float[]
numHighFrequencyElements int

SetTriggerFeedback(byte, byte, byte, byte)

public static void SetTriggerFeedback(byte leftTriggerPosition, byte leftTriggerStrength, byte rightTriggerPosition, byte rightTriggerStrength)

Parameters

leftTriggerPosition byte
leftTriggerStrength byte
rightTriggerPosition byte
rightTriggerStrength byte

SetTriggerVibration(float[], float[], float[], int, float[], float[], float[], int)

public static void SetTriggerVibration(float[] leftTriggerAmplitudes, float[] leftTriggerFrequencies, float[] leftTriggerDurations, int numLeftTriggerElements, float[] rightTriggerAmplitudes, float[] rightTriggerFrequencies, float[] rightTriggerDurations, int numRightTriggerElements)

Parameters

leftTriggerAmplitudes float[]
leftTriggerFrequencies float[]
leftTriggerDurations float[]
numLeftTriggerElements int
rightTriggerAmplitudes float[]
rightTriggerFrequencies float[]
rightTriggerDurations float[]
numRightTriggerElements int

SetTriggerWeaponEffect(byte, byte, byte, byte, byte, byte)

public static void SetTriggerWeaponEffect(byte leftStartPosition, byte leftEnd_position, byte leftStrength, byte rightStartPosition, byte rightEndPosition, byte rightStrength)

Parameters

leftStartPosition byte
leftEnd_position byte
leftStrength byte
rightStartPosition byte
rightEndPosition byte
rightStrength byte

Update()

public static void Update()

UpdateKeyData(byte[])

public static void UpdateKeyData(byte[] keyData)

Parameters

keyData byte[]

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).