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
};
43
enum
Button
{
46
UP
= 0,
47
RIGHT
= 1,
48
DOWN
= 2,
49
LEFT
= 3,
54
PLUS
= 5,
55
TWO
= 6,
56
ONE
= 7,
57
MINUS
= 8,
58
HOME
= 9,
59
Z
= 10,
60
C
= 11,
61
B
= 12,
62
A
= 13,
67
L
= 16,
68
R
= 17,
69
ZL
= 18,
70
ZR
= 19,
75
SELECT
= 4,
76
START
= 5,
77
L3
= 6,
78
R3
= 7,
79
80
L2
= 8,
81
R2
= 9,
82
L1
= 10,
83
R1
= 11,
84
TRIANGLE
= 12,
85
CIRCLE
= 13,
86
CROSS
= 14,
87
SQUARE
= 15,
88
89
PS
= 16,
90
91
MOVE
= 17,
// Covers 12 bits - we only need to read the top 8
92
T
= 18,
// Covers 12 bits - we only need to read the top 8
97
BACK
= 4,
98
X
= 14,
99
Y
= 15,
100
XBOX
= 16,
101
SYNC
= 17,
103
};
105
enum
AnalogHat
{
107
LeftHatX
= 0,
109
LeftHatY
= 1,
111
RightHatX
= 2,
113
RightHatY
= 3,
114
};
115
116
#endif
Generated on Tue Feb 5 2013 19:53:21 for USB_Host_Shield_2.0 by
1.8.3.1