Input
Frame-polled input for C# scripts: GetKey / GetKeyDown / GetKeyUp (KeyCode and name), GetAxis / GetAxisRaw, GetButton*, GetMouseButton*, mousePosition, mouseScrollDelta, inputSt…
Kolpa.Engine.Input
public static class Input{ public static bool anyKey { get; } public static bool anyKeyDown { get; } public static bool CursorLocked { get; set; } public static string inputString { get; } public static Vector2 MouseDelta { get; } public static Vector3 mousePosition { get; } public static bool mousePresent { get; } public static Vector2 mouseScrollDelta { get; } public static float GetAxis(string axisName); public static float GetAxisRaw(string axisName); public static bool GetButton(string buttonName); public static bool GetButtonDown(string buttonName); public static bool GetButtonUp(string buttonName); public static string[] GetJoystickNames(); public static bool GetKey(KeyCode key); public static bool GetKey(string name); public static bool GetKeyDown(KeyCode key); public static bool GetKeyDown(string name); public static bool GetKeyUp(KeyCode key); public static bool GetKeyUp(string name); public static bool GetMouseButton(int button); public static bool GetMouseButton(MouseButton button); public static bool GetMouseButtonDown(int button); public static bool GetMouseButtonDown(MouseButton button); public static bool GetMouseButtonUp(int button); public static bool GetMouseButtonUp(MouseButton button); public static void ResetInputAxes();}