mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-09-19 08:59:43 +02:00
Merge pull request #7 from Crayon2000/gyro_and_angle
Add support for vpad gyro and angle
This commit is contained in:
commit
b64c23cc55
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user