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
140
};
141
143
enum
AnalogHatEnum
{
145
LeftHatX
= 0,
147
LeftHatY
= 1,
149
RightHatX
= 2,
151
RightHatY
= 3,
152
};
153
158
enum
SensorEnum
{
160
aX
= 50,
aY
= 52,
aZ
= 54,
162
gZ
= 56,
163
gX
,
gY
,
// These are not available on the PS3 controller
164
166
aXmove
= 28,
168
aZmove
= 30,
170
aYmove
= 32,
171
173
gXmove
= 40,
175
gZmove
= 42,
177
gYmove
= 44,
178
180
tempMove
= 46,
181
183
mXmove
= 47,
185
mZmove
= 49,
187
mYmove
= 50,
188
};
189
191
enum
AngleEnum
{
192
Pitch
= 0x01,
193
Roll
= 0x02,
194
};
195
196
#endif
R3
Definition:
controllerEnums.h:107
RightHatX
Definition:
controllerEnums.h:149
LED5
Definition:
controllerEnums.h:34
START
Definition:
controllerEnums.h:105
gX
Definition:
controllerEnums.h:163
LED1
Definition:
controllerEnums.h:29
SHARE
Definition:
controllerEnums.h:125
Purble
Definition:
controllerEnums.h:58
aYmove
Definition:
controllerEnums.h:170
gYmove
Definition:
controllerEnums.h:177
LED8
Definition:
controllerEnums.h:37
SQUARE
Definition:
controllerEnums.h:116
LED10
Definition:
controllerEnums.h:39
WHITE
Definition:
controllerEnums.h:138
AnalogHatEnum
AnalogHatEnum
Definition:
controllerEnums.h:143
Yellow
Definition:
controllerEnums.h:54
aZ
Definition:
controllerEnums.h:160
X
Definition:
controllerEnums.h:133
aXmove
Definition:
controllerEnums.h:166
mZmove
Definition:
controllerEnums.h:185
TRIANGLE
Definition:
controllerEnums.h:113
BACK
Definition:
controllerEnums.h:132
Y
Definition:
controllerEnums.h:134
CROSS
Definition:
controllerEnums.h:115
aY
Definition:
controllerEnums.h:160
UP
Definition:
controllerEnums.h:75
SYNC
Definition:
controllerEnums.h:136
gZmove
Definition:
controllerEnums.h:175
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:183
R1
Definition:
controllerEnums.h:112
LED2
Definition:
controllerEnums.h:30
TWO
Definition:
controllerEnums.h:84
gXmove
Definition:
controllerEnums.h:173
RightHatY
Definition:
controllerEnums.h:151
DOWN
Definition:
controllerEnums.h:77
Pitch
Definition:
controllerEnums.h:192
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:168
Roll
Definition:
controllerEnums.h:193
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
ColorsEnum
ColorsEnum
Definition:
controllerEnums.h:45
XBOX
Definition:
controllerEnums.h:135
tempMove
Definition:
controllerEnums.h:180
OFF
Definition:
controllerEnums.h:28
gZ
Definition:
controllerEnums.h:162
AngleEnum
AngleEnum
Definition:
controllerEnums.h:191
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
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:147
LeftHatX
Definition:
controllerEnums.h:145
SensorEnum
SensorEnum
Definition:
controllerEnums.h:158
R2
Definition:
controllerEnums.h:110
HOME
Definition:
controllerEnums.h:87
gY
Definition:
controllerEnums.h:163
OPTIONS
Definition:
controllerEnums.h:126
mYmove
Definition:
controllerEnums.h:187
aX
Definition:
controllerEnums.h:160
ZL
Definition:
controllerEnums.h:98
LEFT
Definition:
controllerEnums.h:78
RumbleLow
Definition:
controllerEnums.h:68
Generated by
1.8.7