Input
Key Reading
Namespace
public static bool Input.IsKeyDown(InputKey key)
if(Input.IsKeyDown(InputKey.Y))
{
//doSomething
}public static bool Input.IsKeyDownImmediate(InputKey key)
public static bool Input.IsKeyPressed(InputKey key)
public static bool Input.IsKeyReleased(InputKey key)
To see how one could document the stages of a key using the above 3 methods: example
public static bool Input.IsControlOrShiftNotDown()
public static bool Input.IsPressed(InputKey key)
public static Vector2 Input.GetKeyState(InputKey key)
public static string Input.GetKeyboardText()
public static bool Input.IsMouseActive
public static bool Input.IsMouseScrollChanged
public static float Input.MouseMoveX
public static float Input.MouseMoveY
Examples
Monitoring a key's state
Key Codes
Last updated