I have an hardware keyboard connected to my Beaglebone, which i read using i2c, then i convert the i2c_keycode in a wxKeyCode (WXK_something, you can think at the keys of a numpad, to have an idea, so WXK_RETURN, WXK_NUMPAD1, etc).
Now i need to "send" the wxKeyCode to the wxTextCtrl with the active focus (i store a pointer to it), but
Code: Select all
wxKeyEvent& keyEvent(EVT_CHAR);
keyEvent.m_keyCode = myWxKeyCode;
myTextCtrl->EmulateKeyPress(keyEvent);
(Also, i'd like more to generate a KEYDOWN event than a char).
What should i do?