Merge pull request #7 from Crayon2000/gyro_and_angle

Add support for vpad gyro and angle
This commit is contained in:
Maschell 2017-04-29 12:43:40 +02:00 committed by GitHub
commit b64c23cc55

View File

@ -73,6 +73,11 @@ typedef struct
f32 x,y;
} Vec2D;
typedef struct
{
f32 x,y,z;
} Vec3D;
typedef struct
{
u16 x, y; /* Touch coordinates */
@ -86,7 +91,10 @@ typedef struct
u32 btns_d; /* Buttons that are pressed at that instant */
u32 btns_r; /* Released buttons */
Vec2D lstick, rstick; /* Each contains 4-byte X and Y components */
char unknown1c[0x52 - 0x1c]; /* Contains accelerometer and gyroscope data somewhere */
char unknown1c[0x38 - 0x1c]; /* Contains accelerometer data somewhere */
Vec3D gyro; /* Gyro data */
Vec3D angle; /* Angle data */
char unknown50[0x52 - 0x50]; /* Two bytes of unknown data */
VPADTPData tpdata; /* Normal touchscreen data */
VPADTPData tpdata1; /* Modified touchscreen data 1 */
VPADTPData tpdata2; /* Modified touchscreen data 2 */