mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-11-29 07:24:13 +01:00
Add support for vpad gyro and angle
gyro.x = Rotation speed around X (horizontal) axis gyro.y = Rotation speed around Y (depth) axis gyro.z = Rotation speed around Z (vertical) axis angle.x = Rotation around X (horizontal) axis angle.y = Rotation around Y (depth) axis angle.z = Rotation around Z (vertical) axis
This commit is contained in:
parent
64f225382a
commit
628bff0145
@ -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