[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    [gtk-list] Re: 2 Simple questions:
From:       Havoc Pennington <rhp () zirx ! pair ! com>
Date:       1999-07-10 1:44:44
[Download RAW message or body]


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


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic