Thread-topic: Possible Bug With Quartz Event Services API
User-agent: Microsoft-Entourage/12.0.0.071130
on 2008-03-02 9:48 PM, Carmen C. Cerino Jr. at email@hidden wrote:
> I think I found a possible bug with the Quartz Event Services API's
> event taps. I am using the API to generate Tablet Proximity and Point
> events. Everything works fine except for pressure. According to the
> documentation pressure is a double value where 0 is no pressure and 1
> is max pressure. If I set the pressure field of my event like so:
>
> myEvent = CGEventCreate(NULL);
> double p = 0.50;
> CGEventSetType(myEvent, kCGEventTabletPointer);
> CGEventSetDoubleValueField(myEvent, kCGTabletEventPointPressure, p);
>
> It will appear as having a value of zero in all of my apps that
> receive this posted event. The event is properly seen as a
> NSTabletPoint event, type 23, in all of my receiving applications.
> However I am not completely sold on the fact that it is a bug with the
> pressure field because I seem to have this problem with all of the
> fields set by CGEventSetDoubleValueField: TiltX, TiltY,
> TangentialPressure.
I'm having similar trouble getting and setting tablet events, using the same
technique. Unfortunately, I'm not far enough along to be sure I'm doing it
right.
Go to the Wacom Web site and download their technical documentation. It has
a lot of information not present in Apple's documentation, plus some sample
code.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden
This email sent to email@hidden