private unsafe void OnKeyTypedEvent(KeyTypedEvent e) { int keycode = e.GetChar(); if (keycode > 0 && keycode < 0x10000) { ImGuiNative.ImGuiIO_AddInputCharacter((ushort)keycode); } }
private void OnKeyChar(IKeyboard keyboard, char keyChar) { var keyTypedEvent = new KeyTypedEvent(keyChar, AXInputCodeMapper.SilkKeyToAXKey((Key)keyChar)); EventCallback(keyTypedEvent); }