On 17 Mar 08, at 16:05, frank.gongpengjun wrote:
I am porting a game onto Mac OS X, I need to track all keyboard event even it is not for me. How can I achieve that goal?

By "game", do you mean "keyboard logger"? This is intentionally not made easy in OS X; keyboard input to certain sources (password fields in particular) is deliberately not made available to other applications to maintain security.

If you really are working on a game, though, Thomases' suggestion of overriding -sendEvent: is probably the way to go if you're writing a Cocoa application. There's also GetKeys() if you're working with Carbon, although you should probably head over to carbon-dev if that's the case.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to