Table of Contents

Interface IInputManager

Namespace
TaleWorlds.InputSystem
Assembly
TaleWorlds.InputSystem.dll
public interface IInputManager

Methods

ClearKeys()

void ClearKeys()

GetClickKeys()

InputKey[] GetClickKeys()

Returns

InputKey[]

GetClipboardText()

string GetClipboardText()

Returns

string

GetControllerType()

Input.ControllerTypes GetControllerType()

Returns

Input.ControllerTypes

GetDesktopResolution()

Vec2 GetDesktopResolution()

Returns

Vec2

GetGyroX()

float GetGyroX()

Returns

float

GetGyroY()

float GetGyroY()

Returns

float

GetGyroZ()

float GetGyroZ()

Returns

float

GetKeyState(InputKey)

Vec2 GetKeyState(InputKey key)

Parameters

key InputKey

Returns

Vec2

GetMouseDeltaZ()

float GetMouseDeltaZ()

Returns

float

GetMouseMoveX()

float GetMouseMoveX()

Returns

float

GetMouseMoveY()

float GetMouseMoveY()

Returns

float

GetMousePositionX()

float GetMousePositionX()

Returns

float

GetMousePositionY()

float GetMousePositionY()

Returns

float

GetMouseScrollValue()

float GetMouseScrollValue()

Returns

float

GetMouseSensitivity()

float GetMouseSensitivity()

Returns

float

GetResolution()

Vec2 GetResolution()

Returns

Vec2

GetVirtualKeyCode(InputKey)

int GetVirtualKeyCode(InputKey key)

Parameters

key InputKey

Returns

int

IsAnyTouchActive()

bool IsAnyTouchActive()

Returns

bool

IsControllerConnected()

bool IsControllerConnected()

Returns

bool

IsKeyDown(InputKey)

bool IsKeyDown(InputKey key)

Parameters

key InputKey

Returns

bool

IsKeyDownImmediate(InputKey)

bool IsKeyDownImmediate(InputKey key)

Parameters

key InputKey

Returns

bool

IsKeyPressed(InputKey)

bool IsKeyPressed(InputKey key)

Parameters

key InputKey

Returns

bool

IsKeyReleased(InputKey)

bool IsKeyReleased(InputKey key)

Parameters

key InputKey

Returns

bool

IsMouseActive()

bool IsMouseActive()

Returns

bool

PressKey(InputKey)

void PressKey(InputKey key)

Parameters

key InputKey

SetClipboardText(string)

void SetClipboardText(string text)

Parameters

text string

SetCursorFriction(float)

void SetCursorFriction(float frictionValue)

Parameters

frictionValue float

SetCursorPosition(int, int)

void SetCursorPosition(int x, int y)

Parameters

x int
y int

SetLightbarColor(float, float, float)

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

Parameters

red float
green float
blue float

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

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)

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)

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)

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

UpdateKeyData(byte[])

void UpdateKeyData(byte[] keyData)

Parameters

keyData byte[]

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