USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 
118  LeftHatX = 0,
120  LeftHatY = 1,
125 };
126 
127 #endif
AnalogHatEnum
LEDEnum
ButtonEnum