Re: Help with text input
Re: Help with text input
- Subject: Re: Help with text input
- From: "Paul Sanders" <email@hidden>
- Date: Fri, 30 Apr 2010 15:53:17 +0100
> what is the best way on cocoa to determin raw key (physical key) input?
http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#//apple_ref/doc/uid/20000016-keyCode
and:
http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#//apple_ref/doc/uid/20000016-SW136
To detect a keypress for a modifier key, you need to look for an NSFlagsChanged event. The documentation for NSEvent covers all this. I imagine you are already familiar with the key codes generated by an Apple keyboard. There's a nifty little app out there called Ukelele which will display them.
Paul Sanders.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden