RE: How to detect the use of the stylus eraser or inverted stylus?

From: Brandon Wallace <brandon.wallace@yahoo.com>
Date: Wed, 26 Sep 2012 09:44:27 -0700 (PDT)
Message-ID: <1348677867.65254.YahooMailNeo@web113601.mail.gq1.yahoo.com> 
To: "public-pointer-events@w3.org" <public-pointer-events@w3.org>
> The spec does not seem to include any way to determine when the stylus eraser is generating events.  Or even if the stylus is being used while inverted.  Would these events show up with additional pointerType values?  Or would there be additional properties on the pointer event to express this state?
> 
> Brandon

I think it'd be exposed through the button/buttons properties (see my other mail).  It's still a pen stylus, but a different button (tip is the primary, barrel is the secondary, second barrel might be the "middle" button, not sure yet what the best value for eraser is though). IE10 just supports the tip and barrel button. 

DOM3 Events set up a pattern for assigning values to additional mouse buttons. We might want to do the same in this spec. We define the most common modifiers on devices today, and define a convention for assigning additional values in the future.

-Jacob

Received on Friday, 28 September 2012 18:51:08 UTC