Michael Schmid wrote:
> Is there any methode to simulate events?
> -> Simulate the event in process1 ("Software-Keyboard" on touch)
> -> Get the event in process2 (My GUI-App.)
>
> FLTK: 1.1.9
> Kernel: 2.6.24
> Window Manager: nano-X 0.91
I suppose you could try calling your window's handle() method
with made up events, but I don't know how well that would work,
as it's not just events that have to be passed in.. if it's
a keyboard event you're simulating, you'd have to not only pass
in the FL_KEYDOWN/UP events, but also make sure Fl::event_key()
returns the keyboard value you want, and I'm not sure if the
global that call returns is writable via the API (I can't remember,
but you should RTSL to see what that call does, and see if it
references a global you can access)
The only example I have on my website is a touchscreen interface
for entering numbers, ie. the equiv of a numeric keypad which
lets you push GUI buttons to add values to an Fl_Input widget..
does not involve events, but regular FLTK behavior of buttons
invoking callbacks that modify the text widget. Normal stuff.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk