Re: [gtk-list] 2 Simple questions:




On Sat, 10 Jul 1999, Peter R. Brinkler wrote:
> 1: Is there a simple way to check if a specific key (shift) is pressed
>     when I receive a mouse release event?
>     I have looked a lot of places for this, so I hope it's not in the
> docs.
> 

Look at http://pobox.com/~hp/gnome-app-devel.html, second sample chapter,
it tells you about the members of the GdkEvent types. 

In this case I think you want the 'state' member:

 if ((event->state & GDK_SHIFT_MASK) != 0)
 {
   /* blah blah blah */
 }

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]