[wx 2.6.x, arm/x86,
gnu] Creating my own wxKeyEvents and Accelerator events
Vadim Zeitlin
vadim at wxwindows.org
Wed Mar 28 02:55:09 PDT 2007
On Wed, 28 Mar 2007 04:35:20 -0400 Richard Harvey Chapman <hchapman-wx-users at 3gfp.com> wrote:
RHC> I have a custom keypad/keyboard with driver. I can get the events
RHC> (via SIGIO) for the keypad in my application, but I'd like to get
RHC> wxWidgets to process them as though they came from the normal
RHC> keyboard. I don't think wxPostEvent will do this for me,
wxPostEvent would be enough if you only wanted to process the key events
in your own code but it wouldn't work with native controls (e.g.
wxTextCtrl).
RHC> Is there a way to do this?
If you're using wxGTK I think you should look into generating X11 events.
Maybe gdk_display_put_event() can help you.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list