• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to track all keyboard event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to track all keyboard event? (From: "frank.gongpengjun" <email@hidden>)

  • Prev by Date: Re: make a window not draggable in spaces
  • Next by Date: @class causing grief
  • Previous by thread: Re: How to track all keyboard event?
  • Next by thread: interface builder 3 question
  • Index(es):
    • Date
    • Thread