Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-17 Thread Dave DeLong
Good to know! Thanks for the info. =) Dave On 16 Jan, 2009, at 4:47 PM, Shawn Erickson wrote: On Fri, Jan 16, 2009 at 2:29 PM, Shawn Erickson shaw...@gmail.com wrote: On Fri, Jan 16, 2009 at 1:15 PM, Dave DeLong davedel...@me.com wrote: My understanding is that the modifierFlag 256

modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Alexander Reichstadt
Hi, I have a phenomenon I am exploiting but unless I know for sure why it works must stop to use. The objective is to make sure that while the mousebuttons is being pressed no other modifier key is pressed, if anything is pressed the whole method return. Testing for 256 seems to work,

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Dave DeLong
My understanding is that the modifierFlag 256 means that no other modifiers are pressed. I haven't found it in the docs anywhere, but I believe that you can count on 256 meaning no flags. Every machine I've tested this on (I've done a bunch of CGEvent stuff recently) seems to agree.

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Michael Ash
On Fri, Jan 16, 2009 at 4:08 PM, Alexander Reichstadt l...@mac.com wrote: Hi, I have a phenomenon I am exploiting but unless I know for sure why it works must stop to use. The objective is to make sure that while the mousebuttons is being pressed no other modifier key is pressed, if anything

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Alexander Reichstadt
Thanks Dave, if someone still has a reference or headerfile or can point me to something from which I can logically deduce that this will hold true, it would help a lot. On 16.01.2009, at 22:15, Dave DeLong wrote: My understanding is that the modifierFlag 256 means that no other modifiers

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Shawn Erickson
On Fri, Jan 16, 2009 at 1:08 PM, Alexander Reichstadt l...@mac.com wrote: Hi, I have a phenomenon I am exploiting but unless I know for sure why it works must stop to use. The objective is to make sure that while the mousebuttons is being pressed no other modifier key is pressed, if anything

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Shawn Erickson
On Fri, Jan 16, 2009 at 1:15 PM, Dave DeLong davedel...@me.com wrote: My understanding is that the modifierFlag 256 means that no other modifiers are pressed. I haven't found it in the docs anywhere, but I believe that you can count on 256 meaning no flags. Every machine I've tested this on

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Alexander Reichstadt
Thanks for all the input, makes sense. Alex On 16.01.2009, at 23:29, Shawn Erickson wrote: On Fri, Jan 16, 2009 at 1:15 PM, Dave DeLong davedel...@me.com wrote: My understanding is that the modifierFlag 256 means that no other modifiers are pressed. I haven't found it in the docs anywhere,