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 relative movement = 0?



Hi all!

I'm writing HID mouse support for a game, and everything's working fine, except for one little thing:
When the mouse has moved, and is held still, it never resets the delta movement to zero, but it keeps on reporting the last delta movement. As it is a (rather odd, I might add) requirement that I don't use any kind of event queue, it feels as if this is impossible? Or is there a way to detect a non-movement of the mouse?

Do you poll or use an element callout handler?

If you use element callout handler you should be called only when some data is really available (button pressed, mouse moving, wheel scrolling etc...). I tried that recently and it seemed to work.

-Tomas
--
Ing. Tomas Zahradnicky, Jr.
Production Manager, 24U Software
Associate Member, Filemaker Solutions Alliance
mailto:email@hidden
http://www.24uSoftware.com
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.

References: 
 >Mouse relative movement = 0? (From: Ivan Milles <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.