Most functions require a Tablet. Use "Tablet.hasTablet" to detect if the user owns a Tablet.
| Variable name
| Variable type
| Description
| Default
|
| hasTablet
| read-only boolean
| True if the system has a tablet that can be used in Phun
|
|
| hasPressure
| read-only boolean
| True if the tablet supports pressure
|
|
| hasOrientation
| read-only boolean
| True if the tablet supports orientation of the pen
|
|
| improveClickTolerance
| boolean
| Increase tolerance of the tablet's pen click
| true
|
| rightClickOverride
| boolean
| holding right-click will transform the left-click to right-click, useful for pens without eraser pressure support
| false
|
| pressure
| read-only float
| Pressure being made on the pen, 0.0 (pen floating) to 1.0 (full pressure)
| 0.5 when hasPressure is false
|
| orientation
| read-only list of 3 floats
| Orientation of the pen
| [0,0,0] when hasOrientation is false
|
From Phun Beta 5.28
I own a "Wacom Volito" and it doesn't have orientation support, but Tablet.hasOrientation returns true and Tablet.orientation always return [0, 900, 0]. (Beta v5.28) --JustBurn 17:20, 10 June 2009 (UTC)
Last modified June 10, 2009 5:20 pm