|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi,
I tried to hack a Carbon sample from the Developer samples (I've never done Carbon before, so I didn't even know how to hook up an event handler), and I think I replicated my previous code in a Carbon app. I achieved the same results. I basically got it to wait for 2 seconds (using a CFTimerRef), do a mouse-down with CGPostMouseEvent(), wait 3 more seconds, and then do a mouse-up with CGPostMouseEvent(). Again it doesn't seem to work for me. I am coding this on a Powerbook without an external USB mouse (using the trackpad)....do you think that would have anything to do with it?
I've downloaded your trial versions of Keystrokes and Switch XS...very impressive stuff. However, I think it is a bit overkill for what my friend needs. She is not that adept at computing, and I just wanted to give her something simple to do clicking and dragging with her head mouse (she is mostly into games and stuff that doesn't require key input). It's also kinda of a personal thing where it'd be cool that I was able to actually code something to help her out. It doesn't have to be commercial quality or anything, just something she can use.
I noticed that in your two programs (Keystrokes and Switch XS), each have a drag function. However, they act differently. You seem to have figured out how to do the drag correctly with Keystrokes, but when I try it with Switch XS I get the same behaviour as my code. The drag does work in Switch XS if I do it completely with the joystick (i.e. I emulate the mouse moves as well), but not when I do the simulated drag-click and then the physical movement of the trackpad.
david. _______________________________________________ Do not post admin requests to the list. They will be ignored. Accessibility-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| References: | |
| >Re: How to do synthetic drags (From: Who Am I <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
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.