2

I have an USB device that will send out some proprietary data and I have an algorithm that converts it to mouse coordinates, the question I have is how do I write a driver that reports to Mac OS X?

I have seen some references to IOHIDPostEvent but I cannot find detailed documentation on Apple's Developer Website. Is this the correct way? I am trying to write an user-space driver versus an in-kernel drive.

Thanks

sk1p
6,72532 silver badges36 bronze badges
asked Jul 1, 2010 at 21:29

1 Answer 1

2

You can check a working but deprecated program here: http://www.macosxhints.com/article.php?story=2008051406323031

The new replacement for CGPostMouseEvent is CGEventCreateMouseEvent and you can read more about it here: http://developer.apple.com/mac/library/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html#//apple_ref/c/func/CGEventCreateMouseEvent

answered Jul 1, 2010 at 22:12
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.