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
OnControllerTypeChanged
public static Action<Input.ControllerTypes> OnControllerTypeChanged
Field Value
OnGamepadActiveStateChanged
public static Action OnGamepadActiveStateChanged
Field Value
Properties
ControllerType
public static Input.ControllerTypes ControllerType { get; }
Property Value
DebugInput
public static IInputContext DebugInput { get; }
Property Value
DeltaMouseScroll
public static float DeltaMouseScroll { get; }
Property Value
DesktopResolution
public static Vec2 DesktopResolution { get; }
Property Value
GyroX
public static float GyroX { get; }
Property Value
GyroY
public static float GyroY { get; }
Property Value
GyroZ
public static float GyroZ { get; }
Property Value
InputManager
public static IInputManager InputManager { get; }
Property Value
InputState
public static InputState InputState { get; }
Property Value
IsAnyTouchActive
public static bool IsAnyTouchActive { get; }
Property Value
IsControllerConnected
public static bool IsControllerConnected { get; }
Property Value
IsGamepadActive
public static bool IsGamepadActive { get; }
Property Value
IsMouseActive
public static bool IsMouseActive { get; }
Property Value
IsMousePositionUpdated
public static bool IsMousePositionUpdated { get; }
Property Value
IsMouseScrollChanged
public static bool IsMouseScrollChanged { get; }
Property Value
MouseMoveX
public static float MouseMoveX { get; }
Property Value
MouseMoveY
public static float MouseMoveY { get; }
Property Value
MousePositionPixel
public static Vec2 MousePositionPixel { get; }
Property Value
MousePositionRanged
public static Vec2 MousePositionRanged { get; }
Property Value
MouseSensitivity
public static float MouseSensitivity { get; }
Property Value
Resolution
public static Vec2 Resolution { get; }
Property Value
Methods
ClearKeys()
public static void ClearKeys()
GetClickKeys()
public static InputKey[] GetClickKeys()
Returns
- InputKey[]
GetClipboardText()
public static string GetClipboardText()
Returns
GetFirstKeyDownInRange(int)
public static int GetFirstKeyDownInRange(int startKeyNo)
Parameters
startKeyNo
int
Returns
GetFirstKeyPressedInRange(int)
public static int GetFirstKeyPressedInRange(int startKeyNo)
Parameters
startKeyNo
int
Returns
GetFirstKeyReleasedInRange(int)
public static int GetFirstKeyReleasedInRange(int startKeyNo)
Parameters
startKeyNo
int
Returns
GetGyroX()
public static float GetGyroX()
Returns
GetGyroY()
public static float GetGyroY()
Returns
GetGyroZ()
public static float GetGyroZ()
Returns
GetKeyState(InputKey)
public static Vec2 GetKeyState(InputKey key)
Parameters
key
InputKey
Returns
GetMouseMoveX()
public static float GetMouseMoveX()
Returns
GetMouseMoveY()
public static float GetMouseMoveY()
Returns
GetVirtualKeyCode(InputKey)
public static int GetVirtualKeyCode(InputKey key)
Parameters
key
InputKey
Returns
Initialize(IInputManager, IInputContext)
public static void Initialize(IInputManager inputManager, IInputContext debugInput)
Parameters
inputManager
IInputManagerdebugInput
IInputContext
IsControlOrShiftNotDown()
public static bool IsControlOrShiftNotDown()
Returns
IsControllerKey(InputKey)
public static bool IsControllerKey(InputKey key)
Parameters
key
InputKey
Returns
IsDown(InputKey)
public static bool IsDown(this InputKey key)
Parameters
key
InputKey
Returns
IsKeyDown(InputKey)
public static bool IsKeyDown(InputKey key)
Parameters
key
InputKey
Returns
IsKeyDownImmediate(InputKey)
public static bool IsKeyDownImmediate(InputKey key)
Parameters
key
InputKey
Returns
IsKeyPressed(InputKey)
public static bool IsKeyPressed(InputKey key)
Parameters
key
InputKey
Returns
IsKeyReleased(InputKey)
public static bool IsKeyReleased(InputKey key)
Parameters
key
InputKey
Returns
IsPlaystation(ControllerTypes)
public static bool IsPlaystation(this Input.ControllerTypes controllerType)
Parameters
controllerType
Input.ControllerTypes
Returns
IsPressed(InputKey)
public static bool IsPressed(this InputKey key)
Parameters
key
InputKey
Returns
IsReleased(InputKey)
public static bool IsReleased(this InputKey key)
Parameters
key
InputKey
Returns
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
SetMousePosition(int, int)
public static void SetMousePosition(int x, int y)
Parameters
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
inthighFrequencyLevels
float[]highFrequencyDurations
float[]numHighFrequencyElements
int
SetTriggerFeedback(byte, byte, byte, byte)
public static void SetTriggerFeedback(byte leftTriggerPosition, byte leftTriggerStrength, byte rightTriggerPosition, byte rightTriggerStrength)
Parameters
leftTriggerPosition
byteleftTriggerStrength
byterightTriggerPosition
byterightTriggerStrength
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
intrightTriggerAmplitudes
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
byteleftEnd_position
byteleftStrength
byterightStartPosition
byterightEndPosition
byterightStrength
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).