Here is a small test for the VPADData structure. It will show these values:
Vec2D lstick, rstick; /* Each contains 4-byte X and Y components */
s8 error; /* Error */
VPADTPData tpdata; /* Normal touchscreen data */
s32 headphone; /* Set to TRUE if headphones are plugged in, FALSE otherwise */
u8 volume; /* 0 to 255 */
u8 battery; /* 0 to 6 */
u8 mic; /* Microphone status */
u8 unk_volume; /* One less than volume */
This is to fix issue #18.
Here is a small test for the VPADData structure. It will show these values:
I have also converted some tabs to spaces.