• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: event pressure:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: event pressure:


  • Subject: Re: event pressure:
  • From: Jonathan Chetwynd <email@hidden>
  • Date: Mon, 12 Dec 2005 11:21:46 +0000

There's one implementation that's simpler than some here:

http://www.wacomeng.com/devsupport/mac/downloads.html

cheers

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
References: 
 >event pressure: (From: Jonathan Chetwynd <email@hidden>)
 >Re: event pressure: (From: Jonathan Chetwynd <email@hidden>)
 >Re: event pressure: (From: Mike Paquette <email@hidden>)

  • Prev by Date: Re: event pressure:
  • Next by Date: RE: call an action of another class
  • Previous by thread: Re: event pressure:
  • Next by thread: Re: event pressure:
  • Index(es):
    • Date
    • Thread