Re: Ctrl-Click keyboard mouse event
- From: Carlos Pereira <jose carlos pereira ist utl pt>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Ctrl-Click keyboard mouse event
- Date: Wed, 11 Nov 2009 13:01:57 +0000
Hi Emmanuel,
thank you very much, that's exactly what I needed,
Best regards,
Carlos
When a button press event is triggered, what is the proper way to know if
the user is pressing down the Ctrl key?
I think that this is what you need:
if (event->button == 1 && (event->state & GDK_CONTROL_MASK) != 0)
{
/* Button 1 with contro clicked */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]