Re: Detect shift key down

2011-06-26 Thread Bernard Desgraupes
Le 26 juin 11 à 07:22, Richard Somers a écrit : On Jun 24, 2011, at 1:19 AM, Bernard Desgraupes wrote: I need to detect if the shift key is pressed by the user during the startup of my app. How would I do that in Cocoa (targetting 10.5 and greater) ? Try this. http://www.cocoabuild

Re: Detect shift key down

2011-06-25 Thread Richard Somers
On Jun 24, 2011, at 1:19 AM, Bernard Desgraupes wrote: > I need to detect if the shift key is pressed by the user during the startup > of my app. How would I do that in Cocoa (targetting 10.5 and greater) ? Try this. http://www.cocoabuilder.com/archive/cocoa/284356-alternative-startup-for

Re: Detect shift key down

2011-06-25 Thread Ken Heglund
This is how I do it in the application delegate's applicationDidFinishLaunching: implementation... UInt32 modifiers = GetCurrentKeyModifiers(); if ( modifiers & shiftKey ) { // handle shift key... } -Ken On Jun 24, 2011, at 12:19 AM, Bernard Desgraupes wrote: > Hi, > > I need to de

Detect shift key down

2011-06-25 Thread Bernard Desgraupes
Hi, I need to detect if the shift key is pressed by the user during the startup of my app. How would I do that in Cocoa (targetting 10.5 and greater) ? The following QA seems inspiring http://developer.apple.com/library/mac/#qa/qa1519/_index.html but I don't know where to install this flags