USB_Host_Shield_2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Enumerations
controllerEnums.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  LED {
  LED1 = 0, LED2 = 1, LED3 = 2, LED4 = 3,
  LED5 = 4, LED6 = 5, LED7 = 6, LED8 = 7,
  LED9 = 8, LED10 = 9, ALL = 4
}
 
enum  Button {
  UP = 0, RIGHT = 1, DOWN = 2, LEFT = 3,
  PLUS = 5, TWO = 6, ONE = 7, MINUS = 8,
  HOME = 9, Z = 10, C = 11, B = 12,
  A = 13, L = 16, R = 17, ZL = 18,
  ZR = 19, SELECT = 4, START = 5, L3 = 6,
  R3 = 7, L2 = 8, R2 = 9, L1 = 10,
  R1 = 11, TRIANGLE = 12, CIRCLE = 13, CROSS = 14,
  SQUARE = 15, PS = 16, MOVE = 17, T = 18,
  BACK = 4, X = 14, Y = 15, XBOX = 16,
  SYNC = 17
}
 
enum  AnalogHat { LeftHatX = 0, LeftHatY = 1, RightHatX = 2, RightHatY = 3 }
 

Enumeration Type Documentation

enum AnalogHat

Joysticks on the PS3 and Xbox controllers.

Enumerator
LeftHatX 

Left joystick x-axis

LeftHatY 

Left joystick y-axis

RightHatX 

Right joystick x-axis

RightHatY 

Right joystick y-axis

Definition at line 105 of file controllerEnums.h.

enum Button

This enum is used to read all the different buttons on the different controllers

Enumerator
UP 

These buttons are available on all the the controllers

RIGHT 

These buttons are available on all the the controllers

DOWN 

These buttons are available on all the the controllers

LEFT 

These buttons are available on all the the controllers

PLUS 

Wii buttons

TWO 

Wii buttons

ONE 

Wii buttons

MINUS 

Wii buttons

HOME 

Wii buttons

Z 

Wii buttons

C 

Wii buttons

B 

Wii buttons

A 

Wii buttons

L 

These are only available on the Wii U Pro Controller

R 

These are only available on the Wii U Pro Controller

ZL 

These are only available on the Wii U Pro Controller

ZR 

These are only available on the Wii U Pro Controller

SELECT 

PS3 controllers buttons

START 

PS3 controllers buttons

L3 

PS3 controllers buttons

R3 

PS3 controllers buttons

L2 

PS3 controllers buttons

R2 

PS3 controllers buttons

L1 

PS3 controllers buttons

R1 

PS3 controllers buttons

TRIANGLE 

PS3 controllers buttons

CIRCLE 

PS3 controllers buttons

CROSS 

PS3 controllers buttons

SQUARE 

PS3 controllers buttons

PS 

PS3 controllers buttons

MOVE 

PS3 controllers buttons

T 

PS3 controllers buttons

BACK 

Xbox buttons

X 

Xbox buttons

Y 

Xbox buttons

XBOX 

Xbox buttons

SYNC 

Xbox buttons

Definition at line 43 of file controllerEnums.h.

enum LED

Enum used to turn on the LEDs on the different controllers.

Enumerator
LED1 
LED2 
LED3 
LED4 
LED5 
LED6 
LED7 
LED8 
LED9 
LED10 
ALL 

Used to blink all LEDs on the Xbox controller

Definition at line 27 of file controllerEnums.h.