-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjoystick.h
More file actions
32 lines (25 loc) · 766 Bytes
/
joystick.h
File metadata and controls
32 lines (25 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __JOYSTICK_PS3__
#define __JOYSTICK_PS3__
#define JOYSTICK_DEVICE "/dev/input/js0"
#define PS3_BUTTON_TRIANGLE 12 // UP
#define PS3_BUTTON_X 14 // DOWN
#define PS3_BUTTON_CIRCLE 13 //RIGHT
#define PS3_BUTTON_SQUARE 15 // LEFT
#define PS3_BUTTON_SELECT 0
#define PS3_BUTTON_START 3
#define PS3_BUTTON_PS 16
#define PS3_BUTTON_ARROW_UP 4
#define PS3_BUTTON_ARROW_DOWN 6
#define PS3_BUTTON_ARROW_RIGHT 5
#define PS3_BUTTON_ARROW_LEFT 7
#define PS3_BUTTON_R1 11
#define PS3_BUTTON_R2 9
#define PS3_BUTTON_R3 2
#define PS3_BUTTON_L1 10
#define PS3_BUTTON_L2 8
#define PS3_BUTTON_L3 1
#define PS3_AXIS_ANALOG_LEFT 0
#define PS3_AXIS_ANALOG_RIGHT 1
#define PS3_AXIS_GYRO 2
#define PS3_AXIS_WTF 3
#endif