USB Host Shield 2.0
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
GitHub
USB_Host_Shield_2.0
controllerEnums.h
Go to the documentation of this file.
1
/* Copyright (C) 2013 Kristian Lauszus, TKJ Electronics. All rights reserved.
2
3
This software may be distributed and modified under the terms of the GNU
4
General Public License version 2 (GPL2) as published by the Free Software
5
Foundation and appearing in the file GPL2.TXT included in the packaging of
6
this file. Please note that GPL2 Section 2[b] requires that all works based
7
on this software must also be made publicly available under the terms of
8
the GPL2 ("Copyleft").
9
10
Contact information
11
-------------------
12
13
Kristian Lauszus, TKJ Electronics
14
Web : http://www.tkjelectronics.com
15
e-mail : kristianl@tkjelectronics.com
16
*/
17
18
#ifndef _controllerenums_h
19
#define _controllerenums_h
20
27
enum
LEDEnum
{
28
OFF
= 0,
29
LED1
= 1,
30
LED2
= 2,
31
LED3
= 3,
32
LED4
= 4,
33
34
LED5
= 5,
35
LED6
= 6,
36
LED7
= 7,
37
LED8
= 8,
38
LED9
= 9,
39
LED10
= 10,
41
ALL
= 5,
42
};
43
45
enum
ColorsEnum
{
47
Red
= 0xFF0000,
49
Green
= 0xFF00,
51
Blue
= 0xFF,
52
54
Yellow
= 0xFFEB04,
56
Lightblue
= 0xFFFF,
58
Purble
= 0xFF00FF,
59
61
White
= 0xFFFFFF,
63
Off
= 0x00,
64
};
65
66
enum
RumbleEnum
{
67
RumbleHigh
= 0x10,
68
RumbleLow
= 0x20,
69
};
70
72
enum
ButtonEnum
{
75
UP
= 0,
76
RIGHT
= 1,
77
DOWN
= 2,
78
LEFT
= 3,
83
PLUS
= 5,
84
TWO
= 6,
85
ONE
= 7,
86
MINUS
= 8,
87
HOME
= 9,
88
Z
= 10,
89
C
= 11,
90
B
= 12,
91
A
= 13,
96
L
= 16,
97
R
= 17,
98
ZL
= 18,
99
ZR
= 19,
104
SELECT
= 4,
105
START
= 5,
106
L3
= 6,
107
R3
= 7,
108
109
L2
= 8,
110
R2
= 9,
111
L1
= 10,
112
R1
= 11,
113
TRIANGLE
= 12,
114
CIRCLE
= 13,
115
CROSS
= 14,
116
SQUARE
= 15,
117
118
PS
= 16,
119
120
MOVE
= 17,
// Covers 12 bits - we only need to read the top 8
121
T
= 18,
// Covers 12 bits - we only need to read the top 8
125
SHARE
= 4,
126
OPTIONS
= 5,
127
TOUCHPAD
= 17,
132
BACK
= 4,
133
X
= 14,
134
Y
= 15,
135
XBOX
= 16,
136
SYNC
= 17,
137
BLACK
= 8,
// Available on the original Xbox controller
138
WHITE
= 9,
// Available on the original Xbox controller
142
RED
= 0,
143
YELLOW
= 1,
144
GREEN
= 2,
145
ORANGE
= 3,
146
BLUE
= 4,
148
};
149
151
enum
AnalogHatEnum
{
153
LeftHatX
= 0,
155
LeftHatY
= 1,
157
RightHatX
= 2,
159
RightHatY
= 3,
160
};
161
166
enum
SensorEnum
{
168
aX
= 50,
aY
= 52,
aZ
= 54,
170
gZ
= 56,
171
gX
,
gY
,
// These are not available on the PS3 controller
172
174
aXmove
= 28,
176
aZmove
= 30,
178
aYmove
= 32,
179
181
gXmove
= 40,
183
gZmove
= 42,
185
gYmove
= 44,
186
188
tempMove
= 46,
189
191
mXmove
= 47,
193
mZmove
= 49,
195
mYmove
= 50,
196
};
197
199
enum
AngleEnum
{
200
Pitch
= 0x01,
201
Roll
= 0x02,
202
};
203
204
#endif
R3
Definition:
controllerEnums.h:107
RightHatX
Definition:
controllerEnums.h:157
LED5
Definition:
controllerEnums.h:34
START
Definition:
controllerEnums.h:105
gX
Definition:
controllerEnums.h:171
LED1
Definition:
controllerEnums.h:29
SHARE
Definition:
controllerEnums.h:125
Purble
Definition:
controllerEnums.h:58
aYmove
Definition:
controllerEnums.h:178
gYmove
Definition:
controllerEnums.h:185
LED8
Definition:
controllerEnums.h:37
BLUE
Definition:
controllerEnums.h:146
SQUARE
Definition:
controllerEnums.h:116
LED10
Definition:
controllerEnums.h:39
WHITE
Definition:
controllerEnums.h:138
AnalogHatEnum
AnalogHatEnum
Definition:
controllerEnums.h:151
Yellow
Definition:
controllerEnums.h:54
aZ
Definition:
controllerEnums.h:168
X
Definition:
controllerEnums.h:133
aXmove
Definition:
controllerEnums.h:174
mZmove
Definition:
controllerEnums.h:193
TRIANGLE
Definition:
controllerEnums.h:113
BACK
Definition:
controllerEnums.h:132
Y
Definition:
controllerEnums.h:134
CROSS
Definition:
controllerEnums.h:115
aY
Definition:
controllerEnums.h:168
UP
Definition:
controllerEnums.h:75
SYNC
Definition:
controllerEnums.h:136
gZmove
Definition:
controllerEnums.h:183
LEDEnum
LEDEnum
Definition:
controllerEnums.h:27
B
Definition:
controllerEnums.h:90
RIGHT
Definition:
controllerEnums.h:76
BLACK
Definition:
controllerEnums.h:137
ONE
Definition:
controllerEnums.h:85
RumbleEnum
RumbleEnum
Definition:
controllerEnums.h:66
A
Definition:
controllerEnums.h:91
mXmove
Definition:
controllerEnums.h:191
R1
Definition:
controllerEnums.h:112
LED2
Definition:
controllerEnums.h:30
TWO
Definition:
controllerEnums.h:84
gXmove
Definition:
controllerEnums.h:181
ORANGE
Definition:
controllerEnums.h:145
RightHatY
Definition:
controllerEnums.h:159
DOWN
Definition:
controllerEnums.h:77
Pitch
Definition:
controllerEnums.h:200
LED9
Definition:
controllerEnums.h:38
MOVE
Definition:
controllerEnums.h:120
ButtonEnum
ButtonEnum
Definition:
controllerEnums.h:72
L2
Definition:
controllerEnums.h:109
LED4
Definition:
controllerEnums.h:32
aZmove
Definition:
controllerEnums.h:176
Roll
Definition:
controllerEnums.h:201
SELECT
Definition:
controllerEnums.h:104
L
Definition:
controllerEnums.h:96
ALL
Definition:
controllerEnums.h:41
ZR
Definition:
controllerEnums.h:99
T
Definition:
controllerEnums.h:121
White
Definition:
controllerEnums.h:61
LED6
Definition:
controllerEnums.h:35
Green
Definition:
controllerEnums.h:49
YELLOW
Definition:
controllerEnums.h:143
GREEN
Definition:
controllerEnums.h:144
ColorsEnum
ColorsEnum
Definition:
controllerEnums.h:45
XBOX
Definition:
controllerEnums.h:135
tempMove
Definition:
controllerEnums.h:188
OFF
Definition:
controllerEnums.h:28
gZ
Definition:
controllerEnums.h:170
AngleEnum
AngleEnum
Definition:
controllerEnums.h:199
L1
Definition:
controllerEnums.h:111
Blue
Definition:
controllerEnums.h:51
Z
Definition:
controllerEnums.h:88
C
Definition:
controllerEnums.h:89
PLUS
Definition:
controllerEnums.h:83
R
Definition:
controllerEnums.h:97
RED
Definition:
controllerEnums.h:142
RumbleHigh
Definition:
controllerEnums.h:67
L3
Definition:
controllerEnums.h:106
Off
Definition:
controllerEnums.h:63
PS
Definition:
controllerEnums.h:118
CIRCLE
Definition:
controllerEnums.h:114
MINUS
Definition:
controllerEnums.h:86
LED3
Definition:
controllerEnums.h:31
TOUCHPAD
Definition:
controllerEnums.h:127
Red
Definition:
controllerEnums.h:47
LED7
Definition:
controllerEnums.h:36
Lightblue
Definition:
controllerEnums.h:56
LeftHatY
Definition:
controllerEnums.h:155
LeftHatX
Definition:
controllerEnums.h:153
SensorEnum
SensorEnum
Definition:
controllerEnums.h:166
R2
Definition:
controllerEnums.h:110
HOME
Definition:
controllerEnums.h:87
gY
Definition:
controllerEnums.h:171
OPTIONS
Definition:
controllerEnums.h:126
mYmove
Definition:
controllerEnums.h:195
aX
Definition:
controllerEnums.h:168
ZL
Definition:
controllerEnums.h:98
LEFT
Definition:
controllerEnums.h:78
RumbleLow
Definition:
controllerEnums.h:68
Generated by
1.8.7