Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_Types.h
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
| typedef enum { | typedef enum { | ||||
| GHOST_kTabletModeNone = 0, | GHOST_kTabletModeNone = 0, | ||||
| GHOST_kTabletModeStylus, | GHOST_kTabletModeStylus, | ||||
| GHOST_kTabletModeEraser | GHOST_kTabletModeEraser | ||||
| } GHOST_TTabletMode; | } GHOST_TTabletMode; | ||||
| typedef enum { | typedef enum { | ||||
| GHOST_kTabletAutomatic = 0, | GHOST_kTabletAutomatic = 0, | ||||
| GHOST_kTabletNative, | /* Show as Windows Ink to users to match "Use Windows Ink" in tablet utilities, but we use the | ||||
| dependent Windows Pointer API. */ | |||||
| GHOST_kTabletWinPointer, | |||||
| GHOST_kTabletWintab, | GHOST_kTabletWintab, | ||||
| } GHOST_TTabletAPI; | } GHOST_TTabletAPI; | ||||
| typedef struct GHOST_TabletData { | typedef struct GHOST_TabletData { | ||||
| GHOST_TTabletMode Active; /* 0=None, 1=Stylus, 2=Eraser */ | GHOST_TTabletMode Active; /* 0=None, 1=Stylus, 2=Eraser */ | ||||
| float Pressure; /* range 0.0 (not touching) to 1.0 (full pressure) */ | float Pressure; /* range 0.0 (not touching) to 1.0 (full pressure) */ | ||||
| float Xtilt; /* range 0.0 (upright) to 1.0 (tilted fully against the tablet surface) */ | float Xtilt; /* range 0.0 (upright) to 1.0 (tilted fully against the tablet surface) */ | ||||
| float Ytilt; /* as above */ | float Ytilt; /* as above */ | ||||
| ▲ Show 20 Lines • Show All 631 Lines • Show Last 20 Lines | |||||