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
LED
{
28
LED1
= 0,
29
LED2
= 1,
30
LED3
= 2,
31
LED4
= 3,
32
33
LED5
= 4,
34
LED6
= 5,
35
LED7
= 6,
36
LED8
= 7,
37
LED9
= 8,
38
LED10
= 9,
40
ALL
= 4,
41
};
42
44
enum
Button
{
47
UP
= 0,
48
RIGHT
= 1,
49
DOWN
= 2,
50
LEFT
= 3,
55
PLUS
= 5,
56
TWO
= 6,
57
ONE
= 7,
58
MINUS
= 8,
59
HOME
= 9,
60
Z
= 10,
61
C
= 11,
62
B
= 12,
63
A
= 13,
68
L
= 16,
69
R
= 17,
70
ZL
= 18,
71
ZR
= 19,
76
SELECT
= 4,
77
START
= 5,
78
L3
= 6,
79
R3
= 7,
80
81
L2
= 8,
82
R2
= 9,
83
L1
= 10,
84
R1
= 11,
85
TRIANGLE
= 12,
86
CIRCLE
= 13,
87
CROSS
= 14,
88
SQUARE
= 15,
89
90
PS
= 16,
91
92
MOVE
= 17,
// Covers 12 bits - we only need to read the top 8
93
T
= 18,
// Covers 12 bits - we only need to read the top 8
98
BACK
= 4,
99
X
= 14,
100
Y
= 15,
101
XBOX
= 16,
102
SYNC
= 17,
103
BLACK
= 8,
// Available on the original Xbox controller
104
WHITE
= 9,
// Available on the original Xbox controller
106
};
107
109
enum
AnalogHat
{
111
LeftHatX
= 0,
113
LeftHatY
= 1,
115
RightHatX
= 2,
117
RightHatY
= 3,
118
};
119
120
#endif
LED3
Definition:
controllerEnums.h:30
UP
Definition:
controllerEnums.h:47
LED1
Definition:
controllerEnums.h:28
DOWN
Definition:
controllerEnums.h:49
ONE
Definition:
controllerEnums.h:57
LED10
Definition:
controllerEnums.h:38
TWO
Definition:
controllerEnums.h:56
BLACK
Definition:
controllerEnums.h:103
LED9
Definition:
controllerEnums.h:37
ZL
Definition:
controllerEnums.h:70
Y
Definition:
controllerEnums.h:100
LeftHatY
Definition:
controllerEnums.h:113
TRIANGLE
Definition:
controllerEnums.h:85
START
Definition:
controllerEnums.h:77
B
Definition:
controllerEnums.h:62
ALL
Definition:
controllerEnums.h:40
RightHatX
Definition:
controllerEnums.h:115
LED4
Definition:
controllerEnums.h:31
L
Definition:
controllerEnums.h:68
LED
LED
Definition:
controllerEnums.h:27
MOVE
Definition:
controllerEnums.h:92
L1
Definition:
controllerEnums.h:83
XBOX
Definition:
controllerEnums.h:101
R2
Definition:
controllerEnums.h:82
LED5
Definition:
controllerEnums.h:33
SQUARE
Definition:
controllerEnums.h:88
SELECT
Definition:
controllerEnums.h:76
LED2
Definition:
controllerEnums.h:29
WHITE
Definition:
controllerEnums.h:104
BACK
Definition:
controllerEnums.h:98
R
Definition:
controllerEnums.h:69
LeftHatX
Definition:
controllerEnums.h:111
Z
Definition:
controllerEnums.h:60
HOME
Definition:
controllerEnums.h:59
L2
Definition:
controllerEnums.h:81
X
Definition:
controllerEnums.h:99
R3
Definition:
controllerEnums.h:79
LED8
Definition:
controllerEnums.h:36
CROSS
Definition:
controllerEnums.h:87
MINUS
Definition:
controllerEnums.h:58
T
Definition:
controllerEnums.h:93
C
Definition:
controllerEnums.h:61
LEFT
Definition:
controllerEnums.h:50
LED7
Definition:
controllerEnums.h:35
LED6
Definition:
controllerEnums.h:34
Button
Button
Definition:
controllerEnums.h:44
ZR
Definition:
controllerEnums.h:71
PLUS
Definition:
controllerEnums.h:55
A
Definition:
controllerEnums.h:63
RIGHT
Definition:
controllerEnums.h:48
SYNC
Definition:
controllerEnums.h:102
AnalogHat
AnalogHat
Definition:
controllerEnums.h:109
PS
Definition:
controllerEnums.h:90
RightHatY
Definition:
controllerEnums.h:117
L3
Definition:
controllerEnums.h:78
R1
Definition:
controllerEnums.h:84
CIRCLE
Definition:
controllerEnums.h:86
Generated by
1.8.5