Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

wacom.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define WACOM_NAME   "wacom"
#define WACOM_TYPE   "TABLET"
#define WACOM_NUM_BUTTONS   16
#define WAC_POINTER_BUTTON   1
#define WAC_BARREL_BUTTON   3
#define WAC_ERASER_BUTTON   2
#define WAC_CHORDED_BUTTON   2
#define WAC_PUCK1_BUTTON   1
#define WAC_PUCK2_BUTTON   0
#define WAC_PUCK3_BUTTON   3
#define WAC_PUCK4_BUTTON   2
#define WACOM_NUM_VALUATORS   16
#define WAC_XCOORD_I   0
#define WAC_YCOORD_I   1
#define WAC_PRESSURE_I   2
#define WAC_BUTTON_I   3
#define WAC_TRANSDUCER_I   4
#define WAC_XTILT_I   5
#define WAC_YTILT_I   6
#define WAC_ZCOORD_I   7
#define WAC_HEIGHT_I   WAC_ZCOORD_I
#define WAC_2XCOORD_I   8
#define WAC_2YCOORD_I   9
#define WAC_TAN_PRESSURE_I   10
#define WAC_ROTATION_I   11
#define WAC_SERIAL_NUM_I   12
#define WAC_2SERIAL_NUM_I   13
#define WAC_2TRANSDUCER_I   14
#define WAC_2BUTTON_I   15
#define WAC_FIRST_MSK   0x0000ffff
#define WAC_SECOND_MSK   0xffff0000
#define WAC_SECOND_OFFSET   16
#define WAC_2PRESSURE_I   WAC_PRESSURE_I
#define WAC_2XTILT_I   WAC_XTILT_I
#define WAC_2YTILT_I   WAC_YTILT_I
#define WAC_2ZCOORD_I   WAC_ZCOORD_I
#define WAC_2HEIGHT_I   WAC_2ZCOORD_I
#define WAC_2TAN_PRESSURE_I   WAC_TAN_PRESSURE_I
#define WAC_2ROTATION_I   WAC_ROTATION_I
#define WACOM_NUM_PTR_AXIS   2
#define WAC_XPTR_I   0
#define WAC_YPTR_I   1
#define WAC_BTN_STYLUS_MSK   0x001f
#define WAC_BTN_PUCK_MSK   0x1f00
#define WAC_MENU_ITEM_MSK   0x001f0000
#define WAC_STYLUS_OFFSET   0
#define WAC_PUCK_OFFSET   8
#define WAC_MENU_OFFSET   16
#define WAC_STYLUS_BUTTONS(x)   (((x)&WAC_BTN_STYLUS_MSK)>>WAC_STYLUS_OFFSET)
#define WAC_PUCK_BUTTONS(x)   (((x)&WAC_BTN_PUCK_MSK)>>WAC_PUCK_OFFSET)
#define WAC_MENU_BUTTONS(x)   (((x)&WAC_MENU_ITEM_MSK)>>WAC_MENU_OFFSET)
#define WACOM_NUM_MENU_BUTTONS   30
#define WAC_TRANSDUCER_ID_MSK   0xfff00
#define WAC_TRANSDUCER_MSK   0x7
#define WAC_PUCK_ID   0x0
#define WAC_STYLUS_ID   0x1
#define WAC_ERASER_ID   0x2
#define WAC_MENU_ID   0x10
#define WAC_TRANSDUCER_PROX_MSK   0x8
#define WAC_TRANSDUCER_ID(x)   (((x) & WAC_TRANSDUCER_ID_MSK) >> 8)
#define WAC_STYLUS_BUTTON_ID(x)   ((x)>>1)
#define WAC_STYLUS_BUTTON_STATE(x)   ((x)&0x1)
#define WAC_ROT_INTG_MSK   0xffc0
#define WAC_ROT_FRAC_MSK   0x003f
#define WAC_ROT_INTG_OFFSET   6
#define WAC_ROT_FRAC_OFFSET   0
#define WAC_ROTATION_INTG(x)   (((x)&WAC_ROT_INTG_MSK)>>WAC_ROT_INTG_OFFSET)
#define WAC_ROTATION_FRAC(x)   (((x)&WAC_ROT_FRAC_MSK)>>WAC_ROT_FRAC_OFFSET)
#define WAC_CURSOR_ROTATION(x)   ((x)*0.2)
#define WACOM_STYLUS_NAME   "stylus"
#define WACOM_ERASER_NAME   "eraser"
#define WACOM_CURSOR_NAME   "cursor"
#define WACOM_STYLUS_NUM_VALUATORS   6
#define WACOM_ERASER_NUM_VALUATORS   6
#define WACOM_CURSOR_NUM_VALUATORS   6
#define WACOM_XCOORD_I   0
#define WACOM_YCOORD_I   1
#define WACOM_PRESSURE_I   2
#define WACOM_XTILT_I   3
#define WACOM_YTILT_I   4
#define WACOM_ROTATION_I   WACOM_XTILT_I
#define WACOM_WHEEL_I   5
#define WACOM_STYLUS_BUTTON_ID(x)   ((x)>>2)
#define WACOM_STYLUS_BUTTON_STATE(x)   (((x)>>1)&0x1)
#define WACOM_CURSOR_ROTATION(x)   ((x)*0.4)
#define WACOM_BUTTONS_UP   0
#define WACOM_BOTTOM_BUTTON_DOWN   1
#define WACOM_TOP_BUTTON_DOWN   2
#define WACOM_TOP_LEFT_BUTTON_DOWN   2
#define WACOM_TOP_MIDDLE_BUTTON_DOWN   4
#define WACOM_TOP_RIGHT_BUTTON_DOWN   8
#define WACOM_BOTTOM_RIGHT_BUTTON_DOWN   16
#define WACOM_BOTTOM_LEFT_BUTTON_DOWN   32


Define Documentation

#define WAC_2BUTTON_I   15
 

Definition at line 78 of file wacom.h.

#define WAC_2HEIGHT_I   WAC_2ZCOORD_I
 

Definition at line 94 of file wacom.h.

#define WAC_2PRESSURE_I   WAC_PRESSURE_I
 

Definition at line 90 of file wacom.h.

#define WAC_2ROTATION_I   WAC_ROTATION_I
 

Definition at line 96 of file wacom.h.

#define WAC_2SERIAL_NUM_I   13
 

Definition at line 76 of file wacom.h.

#define WAC_2TAN_PRESSURE_I   WAC_TAN_PRESSURE_I
 

Definition at line 95 of file wacom.h.

#define WAC_2TRANSDUCER_I   14
 

Definition at line 77 of file wacom.h.

#define WAC_2XCOORD_I   8
 

Definition at line 63 of file wacom.h.

#define WAC_2XTILT_I   WAC_XTILT_I
 

Definition at line 91 of file wacom.h.

#define WAC_2YCOORD_I   9
 

Definition at line 64 of file wacom.h.

#define WAC_2YTILT_I   WAC_YTILT_I
 

Definition at line 92 of file wacom.h.

#define WAC_2ZCOORD_I   WAC_ZCOORD_I
 

Definition at line 93 of file wacom.h.

#define WAC_BARREL_BUTTON   3
 

Definition at line 28 of file wacom.h.

#define WAC_BTN_PUCK_MSK   0x1f00
 

Definition at line 110 of file wacom.h.

#define WAC_BTN_STYLUS_MSK   0x001f
 

Definition at line 109 of file wacom.h.

#define WAC_BUTTON_I   3
 

Definition at line 53 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_CHORDED_BUTTON   2
 

Definition at line 30 of file wacom.h.

#define WAC_CURSOR_ROTATION x   )     ((x)*0.2)
 

Definition at line 148 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_ERASER_BUTTON   2
 

Definition at line 29 of file wacom.h.

#define WAC_ERASER_ID   0x2
 

Definition at line 128 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_FIRST_MSK   0x0000ffff
 

Definition at line 86 of file wacom.h.

#define WAC_HEIGHT_I   WAC_ZCOORD_I
 

Definition at line 58 of file wacom.h.

#define WAC_MENU_BUTTONS x   )     (((x)&WAC_MENU_ITEM_MSK)>>WAC_MENU_OFFSET)
 

Definition at line 117 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_MENU_ID   0x10
 

Definition at line 129 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_MENU_ITEM_MSK   0x001f0000
 

Definition at line 111 of file wacom.h.

#define WAC_MENU_OFFSET   16
 

Definition at line 114 of file wacom.h.

#define WAC_POINTER_BUTTON   1
 

Definition at line 27 of file wacom.h.

#define WAC_PRESSURE_I   2
 

Definition at line 52 of file wacom.h.

Referenced by glutDeviceGet(), and wacomTabletChange().

#define WAC_PUCK1_BUTTON   1
 

Definition at line 35 of file wacom.h.

#define WAC_PUCK2_BUTTON   0
 

Definition at line 36 of file wacom.h.

#define WAC_PUCK3_BUTTON   3
 

Definition at line 37 of file wacom.h.

#define WAC_PUCK4_BUTTON   2
 

Definition at line 38 of file wacom.h.

#define WAC_PUCK_BUTTONS x   )     (((x)&WAC_BTN_PUCK_MSK)>>WAC_PUCK_OFFSET)
 

Definition at line 116 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_PUCK_ID   0x0
 

Definition at line 126 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_PUCK_OFFSET   8
 

Definition at line 113 of file wacom.h.

#define WAC_ROT_FRAC_MSK   0x003f
 

Definition at line 140 of file wacom.h.

#define WAC_ROT_FRAC_OFFSET   0
 

Definition at line 142 of file wacom.h.

#define WAC_ROT_INTG_MSK   0xffc0
 

Definition at line 139 of file wacom.h.

#define WAC_ROT_INTG_OFFSET   6
 

Definition at line 141 of file wacom.h.

#define WAC_ROTATION_FRAC x   )     (((x)&WAC_ROT_FRAC_MSK)>>WAC_ROT_FRAC_OFFSET)
 

Definition at line 144 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_ROTATION_I   11
 

Definition at line 70 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_ROTATION_INTG x   )     (((x)&WAC_ROT_INTG_MSK)>>WAC_ROT_INTG_OFFSET)
 

Definition at line 143 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_SECOND_MSK   0xffff0000
 

Definition at line 87 of file wacom.h.

#define WAC_SECOND_OFFSET   16
 

Definition at line 88 of file wacom.h.

#define WAC_SERIAL_NUM_I   12
 

Definition at line 71 of file wacom.h.

#define WAC_STYLUS_BUTTON_ID x   )     ((x)>>1)
 

Definition at line 136 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_STYLUS_BUTTON_STATE x   )     ((x)&0x1)
 

Definition at line 137 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_STYLUS_BUTTONS x   )     (((x)&WAC_BTN_STYLUS_MSK)>>WAC_STYLUS_OFFSET)
 

Definition at line 115 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_STYLUS_ID   0x1
 

Definition at line 127 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_STYLUS_OFFSET   0
 

Definition at line 112 of file wacom.h.

#define WAC_TAN_PRESSURE_I   10
 

Definition at line 69 of file wacom.h.

#define WAC_TRANSDUCER_I   4
 

Definition at line 54 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_TRANSDUCER_ID x   )     (((x) & WAC_TRANSDUCER_ID_MSK) >> 8)
 

Definition at line 131 of file wacom.h.

#define WAC_TRANSDUCER_ID_MSK   0xfff00
 

Definition at line 124 of file wacom.h.

#define WAC_TRANSDUCER_MSK   0x7
 

Definition at line 125 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_TRANSDUCER_PROX_MSK   0x8
 

Definition at line 130 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_XCOORD_I   0
 

Definition at line 50 of file wacom.h.

Referenced by glutDeviceGet(), and wacomTabletChange().

#define WAC_XPTR_I   0
 

Definition at line 102 of file wacom.h.

#define WAC_XTILT_I   5
 

Definition at line 55 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_YCOORD_I   1
 

Definition at line 51 of file wacom.h.

Referenced by glutDeviceGet(), and wacomTabletChange().

#define WAC_YPTR_I   1
 

Definition at line 103 of file wacom.h.

#define WAC_YTILT_I   6
 

Definition at line 56 of file wacom.h.

Referenced by wacomTabletChange().

#define WAC_ZCOORD_I   7
 

Definition at line 57 of file wacom.h.

Referenced by wacomTabletChange().

#define WACOM_BOTTOM_BUTTON_DOWN   1
 

Definition at line 180 of file wacom.h.

Referenced by __glutWacomSetButton().

#define WACOM_BOTTOM_LEFT_BUTTON_DOWN   32
 

Definition at line 188 of file wacom.h.

Referenced by __glutWacomSetButton().

#define WACOM_BOTTOM_RIGHT_BUTTON_DOWN   16
 

Definition at line 187 of file wacom.h.

Referenced by __glutWacomSetButton().

#define WACOM_BUTTONS_UP   0
 

Definition at line 177 of file wacom.h.

Referenced by __glutWacomSetButton().

#define WACOM_CURSOR_NAME   "cursor"
 

Definition at line 155 of file wacom.h.

Referenced by probeDevices().

#define WACOM_CURSOR_NUM_VALUATORS   6
 

Definition at line 159 of file wacom.h.

#define WACOM_CURSOR_ROTATION x   )     ((x)*0.4)
 

Definition at line 174 of file wacom.h.

Referenced by wacomCursorChange().

#define WACOM_ERASER_NAME   "eraser"
 

Definition at line 154 of file wacom.h.

Referenced by probeDevices().

#define WACOM_ERASER_NUM_VALUATORS   6
 

Definition at line 158 of file wacom.h.

#define WACOM_NAME   "wacom"
 

Definition at line 19 of file wacom.h.

Referenced by probeDevices().

#define WACOM_NUM_BUTTONS   16
 

Definition at line 26 of file wacom.h.

#define WACOM_NUM_MENU_BUTTONS   30
 

Definition at line 119 of file wacom.h.

#define WACOM_NUM_PTR_AXIS   2
 

Definition at line 101 of file wacom.h.

#define WACOM_NUM_VALUATORS   16
 

Definition at line 45 of file wacom.h.

#define WACOM_PRESSURE_I   2
 

Definition at line 163 of file wacom.h.

Referenced by glutDeviceGet(), wacomEraserChange(), and wacomStylusChange().

#define WACOM_ROTATION_I   WACOM_XTILT_I
 

Definition at line 166 of file wacom.h.

Referenced by wacomCursorChange().

#define WACOM_STYLUS_BUTTON_ID x   )     ((x)>>2)
 

Definition at line 169 of file wacom.h.

Referenced by wacomEraserChange(), and wacomStylusChange().

#define WACOM_STYLUS_BUTTON_STATE x   )     (((x)>>1)&0x1)
 

Definition at line 170 of file wacom.h.

Referenced by wacomEraserChange(), and wacomStylusChange().

#define WACOM_STYLUS_NAME   "stylus"
 

Definition at line 153 of file wacom.h.

Referenced by probeDevices().

#define WACOM_STYLUS_NUM_VALUATORS   6
 

Definition at line 157 of file wacom.h.

#define WACOM_TOP_BUTTON_DOWN   2
 

Definition at line 181 of file wacom.h.

Referenced by __glutWacomSetButton().

#define WACOM_TOP_LEFT_BUTTON_DOWN   2
 

Definition at line 184 of file wacom.h.

Referenced by __glutWacomSetButton().

#define WACOM_TOP_MIDDLE_BUTTON_DOWN   4
 

Definition at line 185 of file wacom.h.

Referenced by __glutWacomSetButton().

#define WACOM_TOP_RIGHT_BUTTON_DOWN   8
 

Definition at line 186 of file wacom.h.

Referenced by __glutWacomSetButton().

#define WACOM_TYPE   "TABLET"
 

Definition at line 20 of file wacom.h.

#define WACOM_WHEEL_I   5
 

Definition at line 167 of file wacom.h.

Referenced by wacomCursorChange().

#define WACOM_XCOORD_I   0
 

Definition at line 161 of file wacom.h.

Referenced by glutDeviceGet(), wacomCursorChange(), wacomEraserChange(), and wacomStylusChange().

#define WACOM_XTILT_I   3
 

Definition at line 164 of file wacom.h.

Referenced by glutDeviceGet(), wacomEraserChange(), and wacomStylusChange().

#define WACOM_YCOORD_I   1
 

Definition at line 162 of file wacom.h.

Referenced by glutDeviceGet(), wacomCursorChange(), wacomEraserChange(), and wacomStylusChange().

#define WACOM_YTILT_I   4
 

Definition at line 165 of file wacom.h.

Referenced by glutDeviceGet(), wacomEraserChange(), and wacomStylusChange().


Generated on Mon Sep 18 11:44:02 2006 for jot by  doxygen 1.4.4