Re: event pressure:
Re: event pressure:
- Subject: Re: event pressure:
- From: "I. Savant" <email@hidden>
- Date: Tue, 13 Dec 2005 11:13:04 -0500
Shouldn't it be %f? -pressure returns a float. I may be wrong but ...
NSLog(@"pressure: %f ", [event pressure]);
... should work for you.
--
I.S.
On Dec 13, 2005, at 10:19 AM, Uli Kusterer wrote:
Am 11.12.2005 um 21:31 schrieb Jonathan Chetwynd:
NSLog(@"pressure: %d ", [event pressure]);
the output values are far too high: ~ 1080795136 or 1072693248
supposedly between 0 & 1
What kind of event is this? Only some mouse events contain pressure
information.
Otherwise, a guess: Is this while using a pen or induction-mouse,
or is this event perhaps from an attached USB mouse? You're not
guaranteed to get pressure information from a regular mouse, AFAIK.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden