Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MotionController.h File Reference

Go to the source code of this file.

Classes

struct  KeyMapEntry
class  MotionController

Variables

const int KEY_MAP_SIZE = 256
const int KEY_BASE_SIZE = 64
const int KEY_USER_SIZE = KEY_MAP_SIZE - KEY_BASE_SIZE
const int KEY_MAP_BASE = 0
const int KEY_MAP_END = KEY_MAP_BASE + KEY_BASE_SIZE - 1
const int KEY_USER_BASE = KEY_MAP_END + 1
const int KEY_USER_END = KEY_USER_BASE + KEY_USER_SIZE - 1
const int KEY_MAP_FIRST = KEY_MAP_BASE
const int KEY_MAP_LAST = KEY_MAP_BASE + KEY_MAP_SIZE - 1
const int KEY_PLUS_X = 1
const int KEY_MINUS_X = 2
const int KEY_PLUS_Y = 3
const int KEY_MINUS_Y = 4
const int KEY_PLUS_Z = 5
const int KEY_MINUS_Z = 6
const int KEY_PITCH_UP = 7
const int KEY_PITCH_DOWN = 8
const int KEY_YAW_LEFT = 9
const int KEY_YAW_RIGHT = 10
const int KEY_ROLL_LEFT = 11
const int KEY_ROLL_RIGHT = 12
const int KEY_CENTER = 13
const int KEY_ROLL_ENABLE = 14
const int KEY_ACTION_0 = 15
const int KEY_ACTION_1 = 16
const int KEY_ACTION_2 = 17
const int KEY_ACTION_3 = 18
const int KEY_CONTROL_MODEL = 19
const int KEY_MOUSE_SELECT = 20
const int KEY_MOUSE_SENSE = 21
const int KEY_MOUSE_SWAP = 22
const int KEY_MOUSE_INVERT = 23
const int KEY_MOUSE_ACTIVE = 24
const int KEY_JOY_SELECT = 25
const int KEY_JOY_THROTTLE = 26
const int KEY_JOY_RUDDER = 27
const int KEY_JOY_SENSE = 28
const int KEY_JOY_DEAD_ZONE = 29
const int KEY_JOY_SWAP = 30
const int KEY_AXIS_YAW = 32
const int KEY_AXIS_PITCH = 33
const int KEY_AXIS_ROLL = 34
const int KEY_AXIS_THROTTLE = 35
const int KEY_AXIS_YAW_INVERT = 38
const int KEY_AXIS_PITCH_INVERT = 39
const int KEY_AXIS_ROLL_INVERT = 40
const int KEY_AXIS_THROTTLE_INVERT = 41
const int KEY_JOY_AXIS_X = 0x1A0
const int KEY_JOY_AXIS_Y = 0x1A1
const int KEY_JOY_AXIS_Z = 0x1A2
const int KEY_JOY_AXIS_RX = 0x1A3
const int KEY_JOY_AXIS_RY = 0x1A4
const int KEY_JOY_AXIS_RZ = 0x1A5
const int KEY_JOY_AXIS_S0 = 0x1A6
const int KEY_JOY_AXIS_S1 = 0x1A7
const int KEY_JOY_1 = 0x1C1
const int KEY_JOY_2 = 0x1C2
const int KEY_JOY_3 = 0x1C3
const int KEY_JOY_4 = 0x1C4
const int KEY_JOY_5 = 0x1C5
const int KEY_JOY_6 = 0x1C6
const int KEY_JOY_7 = 0x1C7
const int KEY_JOY_8 = 0x1C8
const int KEY_JOY_9 = 0x1C9
const int KEY_JOY_10 = 0x1CA
const int KEY_JOY_11 = 0x1CB
const int KEY_JOY_12 = 0x1CC
const int KEY_JOY_13 = 0x1CD
const int KEY_JOY_14 = 0x1CE
const int KEY_JOY_15 = 0x1CF
const int KEY_JOY_16 = 0x1D0
const int KEY_JOY_32 = 0x1E0
const int KEY_POV_0_UP = 0x1F0
const int KEY_POV_0_DOWN = 0x1F1
const int KEY_POV_0_LEFT = 0x1F2
const int KEY_POV_0_RIGHT = 0x1F3
const int KEY_POV_1_UP = 0x1F4
const int KEY_POV_1_DOWN = 0x1F5
const int KEY_POV_1_LEFT = 0x1F6
const int KEY_POV_1_RIGHT = 0x1F7
const int KEY_POV_2_UP = 0x1F8
const int KEY_POV_2_DOWN = 0x1F9
const int KEY_POV_2_LEFT = 0x1FA
const int KEY_POV_2_RIGHT = 0x1FB
const int KEY_POV_3_UP = 0x1FC
const int KEY_POV_3_DOWN = 0x1FD
const int KEY_POV_3_LEFT = 0x1FE
const int KEY_POV_3_RIGHT = 0x1FF

Variable Documentation

const int KEY_ACTION_0 = 15

Definition at line 69 of file MotionController.h.

const int KEY_ACTION_1 = 16

Definition at line 70 of file MotionController.h.

const int KEY_ACTION_2 = 17

Definition at line 71 of file MotionController.h.

const int KEY_ACTION_3 = 18

Definition at line 72 of file MotionController.h.

const int KEY_AXIS_PITCH = 33

Definition at line 89 of file MotionController.h.

const int KEY_AXIS_PITCH_INVERT = 39

Definition at line 94 of file MotionController.h.

const int KEY_AXIS_ROLL = 34

Definition at line 90 of file MotionController.h.

const int KEY_AXIS_ROLL_INVERT = 40

Definition at line 95 of file MotionController.h.

const int KEY_AXIS_THROTTLE = 35

Definition at line 91 of file MotionController.h.

const int KEY_AXIS_THROTTLE_INVERT = 41

Definition at line 96 of file MotionController.h.

const int KEY_AXIS_YAW = 32

Definition at line 88 of file MotionController.h.

const int KEY_AXIS_YAW_INVERT = 38

Definition at line 93 of file MotionController.h.

const int KEY_BASE_SIZE = 64

Definition at line 39 of file MotionController.h.

const int KEY_CENTER = 13

Definition at line 66 of file MotionController.h.

const int KEY_CONTROL_MODEL = 19

Definition at line 74 of file MotionController.h.

const int KEY_JOY_1 = 0x1C1

Definition at line 114 of file MotionController.h.

const int KEY_JOY_10 = 0x1CA

Definition at line 123 of file MotionController.h.

const int KEY_JOY_11 = 0x1CB

Definition at line 124 of file MotionController.h.

const int KEY_JOY_12 = 0x1CC

Definition at line 125 of file MotionController.h.

const int KEY_JOY_13 = 0x1CD

Definition at line 126 of file MotionController.h.

const int KEY_JOY_14 = 0x1CE

Definition at line 127 of file MotionController.h.

const int KEY_JOY_15 = 0x1CF

Definition at line 128 of file MotionController.h.

const int KEY_JOY_16 = 0x1D0

Definition at line 129 of file MotionController.h.

const int KEY_JOY_2 = 0x1C2

Definition at line 115 of file MotionController.h.

const int KEY_JOY_3 = 0x1C3

Definition at line 116 of file MotionController.h.

const int KEY_JOY_32 = 0x1E0

Definition at line 131 of file MotionController.h.

const int KEY_JOY_4 = 0x1C4

Definition at line 117 of file MotionController.h.

const int KEY_JOY_5 = 0x1C5

Definition at line 118 of file MotionController.h.

const int KEY_JOY_6 = 0x1C6

Definition at line 119 of file MotionController.h.

const int KEY_JOY_7 = 0x1C7

Definition at line 120 of file MotionController.h.

const int KEY_JOY_8 = 0x1C8

Definition at line 121 of file MotionController.h.

const int KEY_JOY_9 = 0x1C9

Definition at line 122 of file MotionController.h.

const int KEY_JOY_AXIS_RX = 0x1A3

Definition at line 108 of file MotionController.h.

const int KEY_JOY_AXIS_RY = 0x1A4

Definition at line 109 of file MotionController.h.

const int KEY_JOY_AXIS_RZ = 0x1A5

Definition at line 110 of file MotionController.h.

const int KEY_JOY_AXIS_S0 = 0x1A6

Definition at line 111 of file MotionController.h.

const int KEY_JOY_AXIS_S1 = 0x1A7

Definition at line 112 of file MotionController.h.

const int KEY_JOY_AXIS_X = 0x1A0

Definition at line 105 of file MotionController.h.

const int KEY_JOY_AXIS_Y = 0x1A1

Definition at line 106 of file MotionController.h.

const int KEY_JOY_AXIS_Z = 0x1A2

Definition at line 107 of file MotionController.h.

const int KEY_JOY_DEAD_ZONE = 29

Definition at line 85 of file MotionController.h.

const int KEY_JOY_RUDDER = 27

Definition at line 83 of file MotionController.h.

const int KEY_JOY_SELECT = 25

Definition at line 81 of file MotionController.h.

const int KEY_JOY_SENSE = 28

Definition at line 84 of file MotionController.h.

const int KEY_JOY_SWAP = 30

Definition at line 86 of file MotionController.h.

const int KEY_JOY_THROTTLE = 26

Definition at line 82 of file MotionController.h.

const int KEY_MAP_BASE = 0

Definition at line 42 of file MotionController.h.

const int KEY_MAP_END = KEY_MAP_BASE + KEY_BASE_SIZE - 1

Definition at line 43 of file MotionController.h.

const int KEY_MAP_FIRST = KEY_MAP_BASE

Definition at line 48 of file MotionController.h.

const int KEY_MAP_LAST = KEY_MAP_BASE + KEY_MAP_SIZE - 1

Definition at line 49 of file MotionController.h.

const int KEY_MAP_SIZE = 256

Definition at line 38 of file MotionController.h.

const int KEY_MINUS_X = 2

Definition at line 54 of file MotionController.h.

const int KEY_MINUS_Y = 4

Definition at line 56 of file MotionController.h.

const int KEY_MINUS_Z = 6

Definition at line 58 of file MotionController.h.

const int KEY_MOUSE_ACTIVE = 24

Definition at line 79 of file MotionController.h.

const int KEY_MOUSE_INVERT = 23

Definition at line 78 of file MotionController.h.

const int KEY_MOUSE_SELECT = 20

Definition at line 75 of file MotionController.h.

const int KEY_MOUSE_SENSE = 21

Definition at line 76 of file MotionController.h.

const int KEY_MOUSE_SWAP = 22

Definition at line 77 of file MotionController.h.

const int KEY_PITCH_DOWN = 8

Definition at line 61 of file MotionController.h.

const int KEY_PITCH_UP = 7

Definition at line 60 of file MotionController.h.

const int KEY_PLUS_X = 1

Definition at line 53 of file MotionController.h.

const int KEY_PLUS_Y = 3

Definition at line 55 of file MotionController.h.

const int KEY_PLUS_Z = 5

Definition at line 57 of file MotionController.h.

const int KEY_POV_0_DOWN = 0x1F1

Definition at line 134 of file MotionController.h.

const int KEY_POV_0_LEFT = 0x1F2

Definition at line 135 of file MotionController.h.

const int KEY_POV_0_RIGHT = 0x1F3

Definition at line 136 of file MotionController.h.

const int KEY_POV_0_UP = 0x1F0

Definition at line 133 of file MotionController.h.

const int KEY_POV_1_DOWN = 0x1F5

Definition at line 139 of file MotionController.h.

const int KEY_POV_1_LEFT = 0x1F6

Definition at line 140 of file MotionController.h.

const int KEY_POV_1_RIGHT = 0x1F7

Definition at line 141 of file MotionController.h.

const int KEY_POV_1_UP = 0x1F4

Definition at line 138 of file MotionController.h.

const int KEY_POV_2_DOWN = 0x1F9

Definition at line 144 of file MotionController.h.

const int KEY_POV_2_LEFT = 0x1FA

Definition at line 145 of file MotionController.h.

const int KEY_POV_2_RIGHT = 0x1FB

Definition at line 146 of file MotionController.h.

const int KEY_POV_2_UP = 0x1F8

Definition at line 143 of file MotionController.h.

const int KEY_POV_3_DOWN = 0x1FD

Definition at line 149 of file MotionController.h.

const int KEY_POV_3_LEFT = 0x1FE

Definition at line 150 of file MotionController.h.

const int KEY_POV_3_RIGHT = 0x1FF

Definition at line 151 of file MotionController.h.

const int KEY_POV_3_UP = 0x1FC

Definition at line 148 of file MotionController.h.

const int KEY_ROLL_ENABLE = 14

Definition at line 67 of file MotionController.h.

const int KEY_ROLL_LEFT = 11

Definition at line 64 of file MotionController.h.

const int KEY_ROLL_RIGHT = 12

Definition at line 65 of file MotionController.h.

const int KEY_USER_BASE = KEY_MAP_END + 1

Definition at line 45 of file MotionController.h.

const int KEY_USER_END = KEY_USER_BASE + KEY_USER_SIZE - 1

Definition at line 46 of file MotionController.h.

const int KEY_USER_SIZE = KEY_MAP_SIZE - KEY_BASE_SIZE

Definition at line 40 of file MotionController.h.

const int KEY_YAW_LEFT = 9

Definition at line 62 of file MotionController.h.

const int KEY_YAW_RIGHT = 10

Definition at line 63 of file MotionController.h.