Re: receiving global keyDown events
Re: receiving global keyDown events
- Subject: Re: receiving global keyDown events
- From: Ryan Poling <email@hidden>
- Date: Wed, 29 Jun 2005 13:07:11 -0700
Okay, thanks, this looks promising.
-Ryan
On Jun 29, 2005, at 11:02 AM, Dave Camp wrote:
You want to be looking at the HID Manager. You can install event
queues on keys and get notifications on value changes.
<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/
HID/index.html>
Some (most) keyboards have a special HID Element (Usage -1 I think)
that you can put a single event queue on and get events for all key
presses.
Dave
On Jun 29, 2005, at 9:37 AM, Ryan Poling wrote:
Thanks guys, but I don't think that will work. I want to know
when *any* key on the keyboard is pressed - I don't care what the
keys are, I just need the timing. The purpose of this if you're
curious is to have the program make a key click sound when keys
are pressed. OS X has something like this built in, but you can
only turn it on when "slow keys" are enabled under the Universal
Access system preference pane. I want click sounds all the time
but without slow keys.
Any other ideas?
Thanks,
-Ryan
On Jun 28, 2005, at 4:27 PM, Daniel Jalkut wrote:
Register for the specific keystrokes you are interested in with
RegisterEventHotKey. Search the archives for that function name
for more information.
Daniel
On Jun 29, 2005, at 2:05 AM, Nathan Day wrote:
What you want is Hot Keys, you can get this through carbon or
there are at least two wrapper classes including the one on my
web site.
On 29/06/2005, at 3:07 AM, Ryan Poling wrote:
I'm trying to write a little Cocoa app which will be able to see
all keyDown events - even when it's not in the foreground. I've
been playing around with first creating a global floating
window, and although I've managed to do this, I only receive
keyDown events when my window is in the front.
Nathan Day
email@hidden
http://homepage.mac.com/nathan_day/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40criticalpath.com
This email sent to email@hidden
---
Among the chief weapons of UNIX: Fear, surprise and ruthless
efficiency.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden