Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_NDOFManager.h
| Show All 21 Lines | typedef enum { | ||||
| /* Older devices. */ | /* Older devices. */ | ||||
| NDOF_SpacePilot, | NDOF_SpacePilot, | ||||
| NDOF_Spaceball5000, | NDOF_Spaceball5000, | ||||
| NDOF_SpaceTraveler | NDOF_SpaceTraveler | ||||
| } NDOF_DeviceT; | } NDOF_DeviceT; | ||||
| /* NDOF device button event types */ | /** | ||||
| * NDOF device button event types. | |||||
| * | |||||
| * \note Button values are stored in DNA as part of key-map items. | |||||
| * Existing values should not be changed. Otherwise, a mapping must be used, | |||||
| * see #NDOF_BUTTON_INDEX_AS_EVENT. | |||||
| */ | |||||
| typedef enum { | typedef enum { | ||||
| /* Used internally, never sent or used as an index. */ | /* Used internally, never sent or used as an index. */ | ||||
| NDOF_BUTTON_NONE = -1, | NDOF_BUTTON_NONE = -1, | ||||
| /* These two are available from any 3Dconnexion device. */ | /* These two are available from any 3Dconnexion device. */ | ||||
| NDOF_BUTTON_MENU, | NDOF_BUTTON_MENU, | ||||
| NDOF_BUTTON_FIT, | NDOF_BUTTON_FIT, | ||||
| /* Standard views. */ | /* Standard views. */ | ||||
| NDOF_BUTTON_TOP, | NDOF_BUTTON_TOP, | ||||
| Show All 14 Lines | typedef enum { | ||||
| NDOF_BUTTON_TILT_CW, | NDOF_BUTTON_TILT_CW, | ||||
| NDOF_BUTTON_TILT_CCW, | NDOF_BUTTON_TILT_CCW, | ||||
| /* Device control. */ | /* Device control. */ | ||||
| NDOF_BUTTON_ROTATE, | NDOF_BUTTON_ROTATE, | ||||
| NDOF_BUTTON_PANZOOM, | NDOF_BUTTON_PANZOOM, | ||||
| NDOF_BUTTON_DOMINANT, | NDOF_BUTTON_DOMINANT, | ||||
| NDOF_BUTTON_PLUS, | NDOF_BUTTON_PLUS, | ||||
| NDOF_BUTTON_MINUS, | NDOF_BUTTON_MINUS, | ||||
| /* Store Views. */ | |||||
| NDOF_BUTTON_V1, | |||||
| NDOF_BUTTON_V2, | |||||
| NDOF_BUTTON_V3, | |||||
| _NDOF_UNUSED_0, | |||||
| /* General-purpose buttons. | /* General-purpose buttons. | ||||
| * Users can assign functions via keymap editor. */ | * Users can assign functions via keymap editor. */ | ||||
| NDOF_BUTTON_1, | NDOF_BUTTON_1, | ||||
| NDOF_BUTTON_2, | NDOF_BUTTON_2, | ||||
| NDOF_BUTTON_3, | NDOF_BUTTON_3, | ||||
| NDOF_BUTTON_4, | NDOF_BUTTON_4, | ||||
| NDOF_BUTTON_5, | NDOF_BUTTON_5, | ||||
| NDOF_BUTTON_6, | NDOF_BUTTON_6, | ||||
| NDOF_BUTTON_7, | NDOF_BUTTON_7, | ||||
| NDOF_BUTTON_8, | NDOF_BUTTON_8, | ||||
| NDOF_BUTTON_9, | NDOF_BUTTON_9, | ||||
| NDOF_BUTTON_10, | NDOF_BUTTON_10, | ||||
| /* More general-purpose buttons. */ | /* More general-purpose buttons. */ | ||||
| NDOF_BUTTON_A, | NDOF_BUTTON_A, | ||||
| NDOF_BUTTON_B, | NDOF_BUTTON_B, | ||||
| NDOF_BUTTON_C, | NDOF_BUTTON_C, | ||||
| /* Store Views. */ | |||||
| NDOF_BUTTON_V1, | /* Keyboard emulation (keep last as they are mapped to regular keyboard events). */ | ||||
| NDOF_BUTTON_V2, | |||||
| NDOF_BUTTON_V3, | |||||
| /* Keyboard emulation. */ | |||||
| NDOF_BUTTON_ESC, | NDOF_BUTTON_ESC, | ||||
| NDOF_BUTTON_ENTER, | NDOF_BUTTON_ENTER, | ||||
| NDOF_BUTTON_DELETE, | NDOF_BUTTON_DELETE, | ||||
| NDOF_BUTTON_TAB, | NDOF_BUTTON_TAB, | ||||
| NDOF_BUTTON_SPACE, | NDOF_BUTTON_SPACE, | ||||
| NDOF_BUTTON_ALT, | NDOF_BUTTON_ALT, | ||||
| NDOF_BUTTON_SHIFT, | NDOF_BUTTON_SHIFT, | ||||
| NDOF_BUTTON_CTRL, | NDOF_BUTTON_CTRL, | ||||
| ▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines | |||||