JOY is a struct in Sly Cooper and the Thievius Raccoonus that holds data related to controller inputs. There is a global instance, g_joy
at offset 0x262c70 from the ELF base.
Fields
Offset
|
Size
|
Type
|
Name
|
Description
|
4
|
4
|
int
|
nPort
|
Controller port
|
8
|
4
|
int
|
nSlot
|
Controller slot
|
12
|
4
|
u128 *
|
aullDma
|
|
16
|
4
|
int
|
term
|
|
20
|
4
|
JOYS
|
joys
|
JOY state
|
24
|
4
|
JOYK
|
joyk
|
JOY kind
|
28
|
4
|
float
|
tJoys
|
|
32
|
4
|
float
|
tRead
|
|
36
|
4
|
float
|
tActive
|
|
40
|
4
|
int
|
dxLatch
|
|
44
|
4
|
int
|
dyLatch
|
|
48
|
4
|
float
|
tLatchX
|
|
52
|
4
|
float
|
dtLatchX
|
|
56
|
4
|
float
|
tLatchY
|
|
60
|
4
|
float
|
dtLatchY
|
|
64
|
4
|
float
|
x
|
|
68
|
4
|
float
|
y
|
|
72
|
4
|
float
|
uDeflect
|
|
76
|
1
|
uchar
|
bX
|
|
77
|
1
|
uchar
|
bY
|
|
78
|
2
|
short
|
|
|
80
|
4
|
int
|
fStickMoved
|
|
84
|
32
|
LM[4]
|
almDeflect
|
|
116
|
4
|
float
|
x2
|
|
120
|
4
|
float
|
y2
|
|
124
|
4
|
float
|
uDeflect2
|
|
128
|
1
|
uchar
|
bX2
|
|
129
|
1
|
uchar
|
bY2
|
|
130
|
2
|
short
|
|
|
132
|
4
|
int
|
fStickMoved2
|
|
136
|
32
|
LM[4]
|
almDeflect2
|
|
168
|
2
|
u16
|
grfbtn
|
|
170
|
2
|
PadButtons
|
grfbtnPressed
|
|
172
|
2
|
u16
|
grfbtnReleased
|
|
174
|
12
|
uchar[12]
|
mpbtnpb
|
|
186
|
2
|
undefined2
|
|
|
188
|
4
|
RUMBLE *
|
prumble
|
|
192
|
4
|
int
|
fRumbleEnabled
|
|