How to make a key press emulation on Unity in Unity? To respond to it and external programs. With the mouse, we can, for example, move as
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] public static extern int SetCursorPos(int x, int y); Vector2 mousePos; mousePos = new Vector2(1,2) And enter a key on the keyboard?