On 15 February 2022, at 21:30, monocasual laboratories <monoc...@gmail.com> wrote:
>Hi,
>
>In my handle() method I'm trying to detect if a certain key (FL_Shift_L specifically) is being pressed during a mouse click. I'm aware of the existence of Fl::event_shift(), but it's too generic - I need to detect just the left shift. Also, the key might change in the future from FL_Shift_L to something else (say FL_Page_Down) so I'm looking for a more flexible approach. Any help?
Hi "Monocausal",
You can detect key-up and key-down events on individual keys, including shift-L. Use this to check if your designated key is down on the mouse event.
Regards Phil.
>
>Thanks in advance
>
>--
>You received this message because you are subscribed to the Google Groups "fltk.general" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral...@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/e06b2323-0fef-4399-b1fe-1fd0c4374817n%40googlegroups.com.