M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.InputSystem.Input Class Reference

Static Public Member Functions

static void Initialize (IInputManager inputManager, IInputContext debugInput)
 
static void UpdateKeyData (byte[] keyData)
 
static float GetMouseMoveX ()
 
static float GetMouseMoveY ()
 
static Vec2 GetKeyState (InputKey key)
 
static bool IsKeyPressed (InputKey key)
 
static bool IsKeyDown (InputKey key)
 
static bool IsKeyDownImmediate (InputKey key)
 
static bool IsKeyReleased (InputKey key)
 
static bool IsControlOrShiftNotDown ()
 
static int GetFirstKeyPressedInRange (int startKeyNo)
 
static int GetFirstKeyDownInRange (int startKeyNo)
 
static int GetFirstKeyReleasedInRange (int startKeyNo)
 
static void PressKey (InputKey key)
 
static void ClearKeys ()
 
static int GetVirtualKeyCode (InputKey key)
 
static bool IsDown (this InputKey key)
 
static bool IsPressed (this InputKey key)
 
static bool IsReleased (this InputKey key)
 
static void SetClipboardText (System.String text)
 
static string GetClipboardText ()
 
static void Update ()
 
static bool IsControllerKey (InputKey key)
 
static void SetMousePosition (int x, int y)
 
static void SetCursorFriction (float frictionValue)
 
static InputKey GetControllerClickKey ()
 Represents the click key for controller. In some regional builds the click key is different. More...
 

Static Public Attributes

const int NumberOfKeys = 256
 
static Action OnGamepadActiveStateChanged
 

Properties

static InputState InputState [get]
 
static IInputContext DebugInput [get]
 
static IInputManager InputManager [get]
 
static Vec2 Resolution [get]
 
static Vec2 DesktopResolution [get]
 
static bool IsMouseActive [get]
 
static bool IsControllerConnected [get]
 
static bool IsGamepadActive [get]
 
static float MouseMoveX [get]
 
static float MouseMoveY [get]
 
static float MouseSensitivity [get]
 
static float DeltaMouseScroll [get]
 
static Vec2 MousePositionRanged [get]
 
static Vec2 MousePositionPixel [get]
 
static bool IsMousePositionUpdated [get]
 
static bool IsMouseScrollChanged [get]
 

Member Function Documentation

◆ Initialize()

static void TaleWorlds.InputSystem.Input.Initialize ( IInputManager  inputManager,
IInputContext  debugInput 
)
static

◆ UpdateKeyData()

static void TaleWorlds.InputSystem.Input.UpdateKeyData ( byte[]  keyData)
static

◆ GetMouseMoveX()

static float TaleWorlds.InputSystem.Input.GetMouseMoveX ( )
static

◆ GetMouseMoveY()

static float TaleWorlds.InputSystem.Input.GetMouseMoveY ( )
static

◆ GetKeyState()

static Vec2 TaleWorlds.InputSystem.Input.GetKeyState ( InputKey  key)
static

◆ IsKeyPressed()

static bool TaleWorlds.InputSystem.Input.IsKeyPressed ( InputKey  key)
static

◆ IsKeyDown()

static bool TaleWorlds.InputSystem.Input.IsKeyDown ( InputKey  key)
static

◆ IsKeyDownImmediate()

static bool TaleWorlds.InputSystem.Input.IsKeyDownImmediate ( InputKey  key)
static

◆ IsKeyReleased()

static bool TaleWorlds.InputSystem.Input.IsKeyReleased ( InputKey  key)
static

◆ IsControlOrShiftNotDown()

static bool TaleWorlds.InputSystem.Input.IsControlOrShiftNotDown ( )
static

◆ GetFirstKeyPressedInRange()

static int TaleWorlds.InputSystem.Input.GetFirstKeyPressedInRange ( int  startKeyNo)
static

◆ GetFirstKeyDownInRange()

static int TaleWorlds.InputSystem.Input.GetFirstKeyDownInRange ( int  startKeyNo)
static

◆ GetFirstKeyReleasedInRange()

static int TaleWorlds.InputSystem.Input.GetFirstKeyReleasedInRange ( int  startKeyNo)
static

◆ PressKey()

static void TaleWorlds.InputSystem.Input.PressKey ( InputKey  key)
static

◆ ClearKeys()

static void TaleWorlds.InputSystem.Input.ClearKeys ( )
static

◆ GetVirtualKeyCode()

static int TaleWorlds.InputSystem.Input.GetVirtualKeyCode ( InputKey  key)
static

◆ IsDown()

static bool TaleWorlds.InputSystem.Input.IsDown ( this InputKey  key)
static

◆ IsPressed()

static bool TaleWorlds.InputSystem.Input.IsPressed ( this InputKey  key)
static

◆ IsReleased()

static bool TaleWorlds.InputSystem.Input.IsReleased ( this InputKey  key)
static

◆ SetClipboardText()

static void TaleWorlds.InputSystem.Input.SetClipboardText ( System.String  text)
static

◆ GetClipboardText()

static string TaleWorlds.InputSystem.Input.GetClipboardText ( )
static

◆ Update()

static void TaleWorlds.InputSystem.Input.Update ( )
static

◆ IsControllerKey()

static bool TaleWorlds.InputSystem.Input.IsControllerKey ( InputKey  key)
static

◆ SetMousePosition()

static void TaleWorlds.InputSystem.Input.SetMousePosition ( int  x,
int  y 
)
static

◆ SetCursorFriction()

static void TaleWorlds.InputSystem.Input.SetCursorFriction ( float  frictionValue)
static

◆ GetControllerClickKey()

static InputKey TaleWorlds.InputSystem.Input.GetControllerClickKey ( )
static

Member Data Documentation

◆ NumberOfKeys

const int TaleWorlds.InputSystem.Input.NumberOfKeys = 256
static

◆ OnGamepadActiveStateChanged

Action TaleWorlds.InputSystem.Input.OnGamepadActiveStateChanged
static

Property Documentation

◆ InputState

InputState TaleWorlds.InputSystem.Input.InputState
staticget

◆ DebugInput

IInputContext TaleWorlds.InputSystem.Input.DebugInput
staticget

◆ InputManager

IInputManager TaleWorlds.InputSystem.Input.InputManager
staticget

◆ Resolution

Vec2 TaleWorlds.InputSystem.Input.Resolution
staticget

◆ DesktopResolution

Vec2 TaleWorlds.InputSystem.Input.DesktopResolution
staticget

◆ IsMouseActive

bool TaleWorlds.InputSystem.Input.IsMouseActive
staticget

◆ IsControllerConnected

bool TaleWorlds.InputSystem.Input.IsControllerConnected
staticget

◆ IsGamepadActive

bool TaleWorlds.InputSystem.Input.IsGamepadActive
staticget

◆ MouseMoveX

float TaleWorlds.InputSystem.Input.MouseMoveX
staticget

◆ MouseMoveY

float TaleWorlds.InputSystem.Input.MouseMoveY
staticget

◆ MouseSensitivity

float TaleWorlds.InputSystem.Input.MouseSensitivity
staticget

◆ DeltaMouseScroll

float TaleWorlds.InputSystem.Input.DeltaMouseScroll
staticget

◆ MousePositionRanged

Vec2 TaleWorlds.InputSystem.Input.MousePositionRanged
staticget

◆ MousePositionPixel

Vec2 TaleWorlds.InputSystem.Input.MousePositionPixel
staticget

◆ IsMousePositionUpdated

bool TaleWorlds.InputSystem.Input.IsMousePositionUpdated
staticget

◆ IsMouseScrollChanged

bool TaleWorlds.InputSystem.Input.IsMouseScrollChanged
staticget