public void handleKeyboardDown(object sender, KeyboardKeyEventArgs e) { Util.KeyModifiers modifiers = new Util.KeyModifiers(); modifiers.getModifiers(Keyboard.GetState()); UI.keyboard.modifiers = modifiers; UI.keyboard.keysDown[(int)e.Key] = true; }
public void handleKeyboardDown(object sender, KeyboardKeyEventArgs e) { Util.KeyModifiers modifiers = new Util.KeyModifiers(); modifiers.getModifiers(myWindow.Keyboard); ImGui.keyboard.modifiers = modifiers; ImGui.keyboard.keysDown[(int)e.Key] = true; }