Re: How to track all keyboard event?
Re: How to track all keyboard event?
- Subject: Re: How to track all keyboard event?
- From: Andrew Farmer <email@hidden>
- Date: Mon, 17 Mar 2008 23:50:43 -0700
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 (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