Re: Ctrl-Click keyboard mouse event



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]