void UpdateInput() { UpdateMousePosAndButtons(); UpdateMouseCursor(); UpdateGamepads(); int keyPressed = Raylib.GetKeyPressed(); if (keyPressed > 0) { ImGuiIOPtr io = ImGui.GetIO(); KeyboardKey[] nono = new KeyboardKey[] { KeyboardKey.KEY_LEFT_SHIFT, KeyboardKey.KEY_LEFT_ALT, KeyboardKey.KEY_LEFT_CONTROL, KeyboardKey.KEY_CAPS_LOCK, }; if (!nono.Contains((KeyboardKey)keyPressed)) { io.AddInputCharacter((uint)(Encoding.UTF8.GetString(new byte[] { (byte)keyPressed })[0])); } } }