Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Getting the keyboard state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the keyboard state



> On Tue, 29 Jul 2008, Eric Gorr wrote:
> > Is there a unix tool that will return the current state of the keyboard?
> >
> > I would like to be able to determine if that option key is currently being
> > pressed by the user.
>
> I don't know what you mean by 'a unix tool'. You could use the
> function GetKeys(), in HIToolbox/Events.h.


I mean a command line tool that I could execute from the terminal and have it spit back the state of the keys or just a particular key, like the option key.

I agree, I could write one myself which calls GetKeys and outputs the result, but I was hoping to avoid this small part of the task and use something that already exists.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Unix-porting mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.