forked from bartvdbraak/blender
Some clearer comments on the meaning of the tabletdata struct's variables
This commit is contained in:
parent
6f474ccaca
commit
20cf5deb46
@ -55,11 +55,18 @@ typedef enum
|
|||||||
GHOST_kSuccess
|
GHOST_kSuccess
|
||||||
} GHOST_TSuccess;
|
} GHOST_TSuccess;
|
||||||
|
|
||||||
|
/* Xtilt and Ytilt represent how much the pen is tilted away from
|
||||||
|
* vertically upright in either the X or Y direction, with X and Y the
|
||||||
|
* axes of the tablet surface.
|
||||||
|
* In other words, Xtilt and Ytilt are components of a vector created by projecting
|
||||||
|
* the pen's angle in 3D space vertically downwards on to the XY plane
|
||||||
|
* --Matt
|
||||||
|
*/
|
||||||
typedef struct GHOST_TabletData {
|
typedef struct GHOST_TabletData {
|
||||||
char Active; /* 0=None, 1=Stylus, 2=Eraser */
|
char Active; /* 0=None, 1=Stylus, 2=Eraser */
|
||||||
float Pressure;
|
float Pressure; /* range 0.0 (not touching) to 1.0 (full pressure) */
|
||||||
float Xtilt;
|
float Xtilt; /* range 0.0 (upright) to 1.0 (tilted fully against the tablet surface) */
|
||||||
float Ytilt;
|
float Ytilt; /* as above */
|
||||||
} GHOST_TabletData;
|
} GHOST_TabletData;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user