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
ButtonEnum
{
48
UP
= 0,
49
RIGHT
= 1,
50
DOWN
= 2,
51
LEFT
= 3,
56
PLUS
= 5,
57
TWO
= 6,
58
ONE
= 7,
59
MINUS
= 8,
60
HOME
= 9,
61
Z
= 10,
62
C
= 11,
63
B
= 12,
64
A
= 13,
69
L
= 16,
70
R
= 17,
71
ZL
= 18,
72
ZR
= 19,
77
SELECT
= 4,
78
START
= 5,
79
L3
= 6,
80
R3
= 7,
81
82
L2
= 8,
83
R2
= 9,
84
L1
= 10,
85
R1
= 11,
86
TRIANGLE
= 12,
87
CIRCLE
= 13,
88
CROSS
= 14,
89
SQUARE
= 15,
90
91
PS
= 16,
92
93
MOVE
= 17,
// Covers 12 bits - we only need to read the top 8
94
T
= 18,
// Covers 12 bits - we only need to read the top 8
98
SHARE
= 4,
99
OPTIONS
= 5,
100
TOUCHPAD
= 17,
105
BACK
= 4,
106
X
= 14,
107
Y
= 15,
108
XBOX
= 16,
109
SYNC
= 17,
110
BLACK
= 8,
// Available on the original Xbox controller
111
WHITE
= 9,
// Available on the original Xbox controller
113
};
114
116
enum
AnalogHatEnum
{
118
LeftHatX
= 0,
120
LeftHatY
= 1,
122
RightHatX
= 2,
124
RightHatY
= 3,
125
};
126
131
enum
SensorEnum
{
133
aX
= 50,
aY
= 52,
aZ
= 54,
135
gZ
= 56,
136
gX
,
gY
,
// These are not available on the PS3 controller
137
139
aXmove
= 28,
141
aZmove
= 30,
143
aYmove
= 32,
144
146
gXmove
= 40,
148
gZmove
= 42,
150
gYmove
= 44,
151
153
tempMove
= 46,
154
156
mXmove
= 47,
158
mZmove
= 49,
160
mYmove
= 50,
161
};
162
164
enum
AngleEnum
{
165
Pitch
= 0x01,
166
Roll
= 0x02,
167
};
168
169
#endif
R3
Definition:
controllerEnums.h:80
RightHatX
Definition:
controllerEnums.h:122
LED5
Definition:
controllerEnums.h:34
START
Definition:
controllerEnums.h:78
gX
Definition:
controllerEnums.h:136
LED1
Definition:
controllerEnums.h:29
SHARE
Definition:
controllerEnums.h:98
aYmove
Definition:
controllerEnums.h:143
gYmove
Definition:
controllerEnums.h:150
LED8
Definition:
controllerEnums.h:37
SQUARE
Definition:
controllerEnums.h:89
LED10
Definition:
controllerEnums.h:39
WHITE
Definition:
controllerEnums.h:111
AnalogHatEnum
AnalogHatEnum
Definition:
controllerEnums.h:116
aZ
Definition:
controllerEnums.h:133
X
Definition:
controllerEnums.h:106
aXmove
Definition:
controllerEnums.h:139
mZmove
Definition:
controllerEnums.h:158
TRIANGLE
Definition:
controllerEnums.h:86
BACK
Definition:
controllerEnums.h:105
Y
Definition:
controllerEnums.h:107
CROSS
Definition:
controllerEnums.h:88
aY
Definition:
controllerEnums.h:133
UP
Definition:
controllerEnums.h:48
SYNC
Definition:
controllerEnums.h:109
gZmove
Definition:
controllerEnums.h:148
LEDEnum
LEDEnum
Definition:
controllerEnums.h:27
B
Definition:
controllerEnums.h:63
RIGHT
Definition:
controllerEnums.h:49
BLACK
Definition:
controllerEnums.h:110
ONE
Definition:
controllerEnums.h:58
A
Definition:
controllerEnums.h:64
mXmove
Definition:
controllerEnums.h:156
R1
Definition:
controllerEnums.h:85
LED2
Definition:
controllerEnums.h:30
TWO
Definition:
controllerEnums.h:57
gXmove
Definition:
controllerEnums.h:146
RightHatY
Definition:
controllerEnums.h:124
DOWN
Definition:
controllerEnums.h:50
Pitch
Definition:
controllerEnums.h:165
LED9
Definition:
controllerEnums.h:38
MOVE
Definition:
controllerEnums.h:93
ButtonEnum
ButtonEnum
Definition:
controllerEnums.h:45
L2
Definition:
controllerEnums.h:82
LED4
Definition:
controllerEnums.h:32
aZmove
Definition:
controllerEnums.h:141
Roll
Definition:
controllerEnums.h:166
SELECT
Definition:
controllerEnums.h:77
L
Definition:
controllerEnums.h:69
ALL
Definition:
controllerEnums.h:41
ZR
Definition:
controllerEnums.h:72
T
Definition:
controllerEnums.h:94
LED6
Definition:
controllerEnums.h:35
XBOX
Definition:
controllerEnums.h:108
tempMove
Definition:
controllerEnums.h:153
OFF
Definition:
controllerEnums.h:28
gZ
Definition:
controllerEnums.h:135
AngleEnum
AngleEnum
Definition:
controllerEnums.h:164
L1
Definition:
controllerEnums.h:84
Z
Definition:
controllerEnums.h:61
C
Definition:
controllerEnums.h:62
PLUS
Definition:
controllerEnums.h:56
R
Definition:
controllerEnums.h:70
L3
Definition:
controllerEnums.h:79
PS
Definition:
controllerEnums.h:91
CIRCLE
Definition:
controllerEnums.h:87
MINUS
Definition:
controllerEnums.h:59
LED3
Definition:
controllerEnums.h:31
TOUCHPAD
Definition:
controllerEnums.h:100
LED7
Definition:
controllerEnums.h:36
LeftHatY
Definition:
controllerEnums.h:120
LeftHatX
Definition:
controllerEnums.h:118
SensorEnum
SensorEnum
Definition:
controllerEnums.h:131
R2
Definition:
controllerEnums.h:83
HOME
Definition:
controllerEnums.h:60
gY
Definition:
controllerEnums.h:136
OPTIONS
Definition:
controllerEnums.h:99
mYmove
Definition:
controllerEnums.h:160
aX
Definition:
controllerEnums.h:133
ZL
Definition:
controllerEnums.h:71
LEFT
Definition:
controllerEnums.h:51
Generated by
1.8.6