private unsafe void OnKeyTypedEvent(KeyTypedEvent e)
        {
            int keycode = e.GetChar();

            if (keycode > 0 && keycode < 0x10000)
            {
                ImGuiNative.ImGuiIO_AddInputCharacter((ushort)keycode);
            }
        }
Example #2
0
        private void OnKeyChar(IKeyboard keyboard, char keyChar)
        {
            var keyTypedEvent = new KeyTypedEvent(keyChar, AXInputCodeMapper.SilkKeyToAXKey((Key)keyChar));

            EventCallback(keyTypedEvent);
        }