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
21
/*
22
This header file is used to store different enums for the controllers,
23
This is necessary so all the different libraries can be used at once
24
*/
25
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
KEYPAD
= 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
127
#endif
R3
Definition:
controllerEnums.h:80
RightHatX
Definition:
controllerEnums.h:122
LED5
Definition:
controllerEnums.h:34
START
Definition:
controllerEnums.h:78
LED1
Definition:
controllerEnums.h:29
SHARE
Definition:
controllerEnums.h:98
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
X
Definition:
controllerEnums.h:106
TRIANGLE
Definition:
controllerEnums.h:86
BACK
Definition:
controllerEnums.h:105
Y
Definition:
controllerEnums.h:107
CROSS
Definition:
controllerEnums.h:88
UP
Definition:
controllerEnums.h:48
SYNC
Definition:
controllerEnums.h:109
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
R1
Definition:
controllerEnums.h:85
LED2
Definition:
controllerEnums.h:30
TWO
Definition:
controllerEnums.h:57
RightHatY
Definition:
controllerEnums.h:124
DOWN
Definition:
controllerEnums.h:50
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
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
OFF
Definition:
controllerEnums.h:28
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
KEYPAD
Definition:
controllerEnums.h:100
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
LED7
Definition:
controllerEnums.h:36
LeftHatY
Definition:
controllerEnums.h:120
LeftHatX
Definition:
controllerEnums.h:118
R2
Definition:
controllerEnums.h:83
HOME
Definition:
controllerEnums.h:60
OPTIONS
Definition:
controllerEnums.h:99
ZL
Definition:
controllerEnums.h:71
LEFT
Definition:
controllerEnums.h:51
Generated by
1.8.6