M&B: Bannerlord 1.2.9
The horns sound, the ravens gather.
|
Public Types | |
enum | ControllerTypes { None = 0x00 , Xbox = 0x01 , PlayStationDualShock = 0x02 , PlayStationDualSense = 0x04 } |
Static Public Member Functions | |
static bool | IsPlaystation (this ControllerTypes controllerType) |
static void | Initialize (IInputManager inputManager, IInputContext debugInput) |
static void | UpdateKeyData (byte[] keyData) |
static float | GetMouseMoveX () |
static float | GetMouseMoveY () |
static float | GetGyroX () |
static float | GetGyroY () |
static float | GetGyroZ () |
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[] | GetClickKeys () |
Represents the click keys. In some regional builds the click key is different. Sometimes LOption is also click. | |
static void | SetRumbleEffect (float[] lowFrequencyLevels, float[] lowFrequencyDurations, int numLowFrequencyElements, float[] highFrequencyLevels, float[] highFrequencyDurations, int numHighFrequencyElements) |
static void | SetTriggerFeedback (byte leftTriggerPosition, byte leftTriggerStrength, byte rightTriggerPosition, byte rightTriggerStrength) |
static void | SetTriggerWeaponEffect (byte leftStartPosition, byte leftEnd_position, byte leftStrength, byte rightStartPosition, byte rightEndPosition, byte rightStrength) |
static void | SetTriggerVibration (float[] leftTriggerAmplitudes, float[] leftTriggerFrequencies, float[] leftTriggerDurations, int numLeftTriggerElements, float[] rightTriggerAmplitudes, float[] rightTriggerFrequencies, float[] rightTriggerDurations, int numRightTriggerElements) |
static void | SetLightbarColor (float red, float green, float blue) |
Static Public Attributes | |
const int | NumberOfKeys = 256 |
static Action | OnGamepadActiveStateChanged |
static Action< ControllerTypes > | OnControllerTypeChanged |
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 bool | IsAnyTouchActive [get] |
static ControllerTypes | ControllerType [get] |
static float | MouseMoveX [get] |
static float | MouseMoveY [get] |
static float | GyroX [get] |
static float | GyroY [get] |
static float | GyroZ [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] |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |