mc.mitm: correct motion control values to use signed integers

This commit is contained in:
ndeadly 2022-01-12 05:32:15 +01:00
parent b64a83ada5
commit ac6999cf40
2 changed files with 12 additions and 12 deletions

View file

@ -140,12 +140,12 @@ namespace ams::controller {
uint8_t right_trigger;
uint16_t timestamp;
uint8_t battery;
uint16_t vel_x;
uint16_t vel_y;
uint16_t vel_z;
uint16_t acc_x;
uint16_t acc_y;
uint16_t acc_z;
int16_t vel_x;
int16_t vel_y;
int16_t vel_z;
int16_t acc_x;
int16_t acc_y;
int16_t acc_z;
uint8_t _unk1[5];
uint8_t battery_level : 4;

View file

@ -79,12 +79,12 @@ namespace ams::controller {
} __attribute__ ((__packed__));
struct Switch6AxisData {
uint16_t accel_x;
uint16_t accel_y;
uint16_t accel_z;
uint16_t gyro_1;
uint16_t gyro_2;
uint16_t gyro_3;
int16_t accel_x;
int16_t accel_y;
int16_t accel_z;
int16_t gyro_1;
int16_t gyro_2;
int16_t gyro_3;
} __attribute__ ((__packed__));
struct Switch6AxisCalibrationData {