Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to address properties in AppleADBKeyboard



Hi,

I'm upgrading my application, fnSwitch, from MacOS X 10.2 to Panther (
10.3.1 ). This app allows the user to select the way that fn key
operates on PowerBooks.

In MacOS X 10.2 was necessary to change the Apple standard driver (
AppleADBKeyboard ) and add some functions to control the fn key, also
was necessary a user client class to comunicate with user space. The
user space part was simply a preference pane.

Now in Panther, things seem different because the standard Apple driver
provides support for the fn key !! ( you can see the property
HIDFKeyMode in the driver with IORegistryExplorer and Darwin sources
show support functions that modify the keyboard according this property
) so it's not necessary to modify this standard driver.

In order to configure the driver I plan to use the new functions
IOHIDSetParameter and IOHIDGetParameter, which are defined in
<IOKit/hidsystem/IOHIDLib.h>.

There is any sample about this new functions ??

And more important, is necessary to mantain a user client driver to
call the support functions in the driver ???

If I use the function IOServiceOpen to create a dataPort, I will always
receive a kIOReturnUnsupported error because there is no user client
linked to the driver. So the approach IOServiceOpen - IOHIDSetParameter
- IOServiceClose doesn't work.

Any idea ??

Best regards,
Joan B. Altadill
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.