Path: utzoo!attcan!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sunybcs!boulder!stan!marvin!toml From: toml@marvin.Solbourne.COM (Tom LaStrange) Newsgroups: comp.windows.x Subject: Re: state mask in button Press and Button Release Message-ID: <1990Feb20.150759.6686@Solbourne.COM> Date: 20 Feb 90 15:07:59 GMT Sender: news@Solbourne.COM Organization: Solbourne Computer, Inc. Lines: 22 > When I have a Button Press or Button Release events reported > to me the state member is NULL (or 0 as it comes out in the printf). > This is the case no matter what modifier is present i.e. ShiftMask etc. > Surprisingly, even the state does not reflect the appropriate number of the > Button pressed (for ex: if button press was caused by Button2 then the > state member should have the Button2Mask turned on). Although, one can > find out this from > the button member of the event structure (But that is not the point). I quote from the Red Book, page 223: "The state member is set to indicate the logical state of the pointer buttons and modifier keys just prior to the event ..." ^^^^^ -- Tom LaStrange Solbourne Computer Inc. ARPA: toml@Solbourne.COM 1900 Pike Rd. UUCP: ...!{boulder,sun}!stan!toml Longmont, CO 80501