-
Notifications
You must be signed in to change notification settings - Fork 0
/
Data.java
58 lines (47 loc) · 1.05 KB
/
Data.java
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package me.psrcek.xboxControllerApi;
public class Data {
//BUTTONS
public boolean A = false;
public boolean B = false;
public boolean X = false;
public boolean Y = false;
public boolean LB = false;
public boolean RB = false;
public boolean BACK = false;
public boolean START = false;
public boolean HOME = false;
public boolean LS = false;
public boolean RS = false;
//AXIS
public byte LSX = 0;
public byte LSY = 0;
public byte LT = -128;
public byte RT = -128;
public byte RSX = 0;
public byte RSY = 0;
public byte DPADX = 0;
public byte DPADY = 0;
public int readBytes = 0;
@Override
public String toString() {
return "A: " + A
+ " B: " + B
+ " X: " + X
+ " Y: " + Y
+ " LB: " + LB
+ " RB: " + RB
+ " BACK: " + BACK
+ " START: " + START
+ " HOME: " + HOME
+ " LS: " + LS
+ " RS: " + RS
+ " LSX: " + LSX
+ " LSY: " + LSY
+ " LT: " + LT
+ " RT: " + RT
+ " RSX: " + RSX
+ " RSY: " + RSY
+ " DPADX: " + DPADX
+ " DPADY: " + DPADY;
}
}