Hi,
I'm trying to write a pad plugin on PSXeven.
I've found the following description:
data contents of normal PAD.(push low)
byte b7 b6 b5 b4 b3 b2 b1 b0
0 --- N.A.
1 0x41 'A'
2 0x5a 'Z'
3 LEFT DOWN RGHT UP STA 1 1 SEL
4 Square X O Triangle R1 L1 R2 L2
I use the description of 3rd and 4th bytes to form "unsigned short buttonStatus" in struct PadDataS like this:
0xFFDF -> Right
0xDFFF -> Circle
etc.
The problem is, some games works w/o problem, but some others behave odd. It seems that 0x0020 -> Right, 0x2000 -> Circle is the right way.
I think there shouldn't be any difference between games in pad processing, so there must be something wrong in my code.
What's probably wrong w/ my code?
I'm trying to write a pad plugin on PSXeven.
I've found the following description:
data contents of normal PAD.(push low)
byte b7 b6 b5 b4 b3 b2 b1 b0
0 --- N.A.
1 0x41 'A'
2 0x5a 'Z'
3 LEFT DOWN RGHT UP STA 1 1 SEL
4 Square X O Triangle R1 L1 R2 L2
I use the description of 3rd and 4th bytes to form "unsigned short buttonStatus" in struct PadDataS like this:
0xFFDF -> Right
0xDFFF -> Circle
etc.
The problem is, some games works w/o problem, but some others behave odd. It seems that 0x0020 -> Right, 0x2000 -> Circle is the right way.
I think there shouldn't be any difference between games in pad processing, so there must be something wrong in my code.
What's probably wrong w/ my code?