On 07/05/11 13:25, Georg Potthast wrote:
> I have observed that apparently FLTK does not use the key characters
> but the key scancodes.
FLTK lets you access both.
See the "Keyboard Events" paragraphs on this page for info:
http://fltk.org/doc-1.3/events.html
> Is this correct and there a switch somewhere
> which one can set to have FLTK use the key characters?
Separate methods are used.
Paraphrasing the above docs; use Fl::event_key() to get the 'scan code':
http://fltk.org/doc-1.3/group__fl__events.html#ga1ac131e3cd5ca674cc022b1f77233449
Use Fl::event_text()/Fl::event_length() to get the text equivalent:
http://fltk.org/doc-1.3/group__fl__events.html#ga6647c55948fe1d8be9367267529e9c54
You may also need to use Fl::compose() (eg. if making a text input
widget):
http://fltk.org/doc-1.3/group__fl__events.html#ga79b619b0bccac6da8cdc55e6bb8a8d52
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev