the bit flags in the table below indicate which key is pressed on the controller. If the value below is set in logical AND operation with the key status, the corresponding key is held.
The value comes as unsigned int, but now I have no idea how to get out for example when the button A is pressed?
|Bit Flag | Button |
|0x00000001|Cross or A|
|0x00000002|Triangle or Y|
|0x00000004|Circle or B|
|0x00000008|Square or X|
|0x00000010|D-pad Left|
|0x00000020|D-pad Right|
|0x00000040|D-pad Up|
|0x00000080|D-pad Down|
|0x00000100|Options or Menu|
|0x00000200|L1 or LB|
|0x00000400|R1 or RB|
|0x00000800|L2 or LT|
|0x00001000|R2 or RT|
|0x00002000|Left Stick Click|
|0x00004000|Right Stick Click|
|0x00008000|Right Stick Left|
|0x00010000|Right Stick Right|
|0x00020000|Right Stick Up|
|0x00040000|Right Stick Down|
|0x00080000|Special|