Mailing Lists: Apple Mailing Lists

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

Re: mouse driver



Hi Jeff,

On Jun 14, 2005, at 7:56 PM, Jeff Schindler wrote:
Why do you think that you need your own driver? In any case, the
This is for a high-performance, game oriented mouse - the thought was that in order to get the best performance that we should roll our own driver.

Are you experiencing a performance problem with the default mouse driver? In general, the best approach is to start simple and only optimize anything that is shown to need it. Assuming that the default implementation needs replacing will lead you to write a lot of unnecessary code (and you won't even know if you are actuall faster if you didn't baseline first).


IOUSBHIDDriver is the driver for any mouse device. The AppleUSBOpticalMouse is just a vendor-specific driver that issues some commands to the driver. I would try to make your device work with the HID driver. Use the HID lib to communicate with your device from user space.

We also intend on having a preferences panel for controlling the parameters for the mouse - so, in theory, utilizing the default HID driver may serve our purposes? Assuming we do roll our own driver, would we subclass IOUSBHIDDriver or IOHIPointing, and would we need our own user client class for that?

If all you are communicating is prefs, then it will be easier for you to just use the IORegistry to communicate and avoid writing a new IOUserClient.


If your driver is targeted for Tiger or later, there is an easier way to write a mouse driver. In Tiger, I added the following in kernel
Right now, unless we can convince otherwise, we are targeting 10.3 and up.

I think the thing to do is dig in and start with a bare-bones (perhaps codeless?) custom driver to at least match our device and then go from there. I just need a small push in the right direction.

Yep - that sounds like the best approach to me.

Cheers,
 - Dean
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden
References: 
 >mouse driver (From: "Jeff Schindler" <email@hidden>)
 >Re: mouse driver (From: Fernando Urbina <email@hidden>)
 >Re: mouse driver (From: "Jeff Schindler" <email@hidden>)



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.