Re: event pressure:
Re: event pressure:
- Subject: Re: event pressure:
- From: Jonathan Chetwynd <email@hidden>
- Date: Mon, 12 Dec 2005 10:33:41 +0000
Mike,
that's incredibly kind.
thanks!
Jonathan Chetwynd
Accessible Solutions
http://www.eas-i.co.uk
On 11 Dec 2005, at 22:42, Mike Paquette wrote:
- (void) setLineWidth: (NSBezierPath *)path fromEvent:(NSEvent *)event
{
float pressureValue;
pressureValue = [event pressure];
// Scale the pressure to get a width from 0 to 255, for this example
pressureValue *= 255.0;
// Set the line width that 'path' will be using
[path setLineWidth:pressureValue];
// void method, so no explicit return is needed
}
_______________________________________________
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