allow disabling touchbar + use timestamp from the bmi323

This commit is contained in:
Denis 2024-01-03 00:59:57 +01:00
parent bb4ff25130
commit 358fba86d6
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
15 changed files with 77 additions and 67 deletions

View file

@ -47,11 +47,11 @@ typedef struct gamepad_status {
uint8_t touchpad_press;
int16_t touchpad_touch_num; // touchpad is inactive when this is -1
int16_t touchpad_x;
int16_t touchpad_y;
int16_t touchpad_x; // 0 to 1920
int16_t touchpad_y; // 0 to 1080
struct timeval last_gyro_motion_time;
struct timeval last_accel_motion_time;
int64_t last_gyro_motion_timestamp_ns;
int64_t last_accel_motion_timestamp_ns;
double gyro[3]; // | x, y, z| right-hand-rules -- in rad/s
double accel[3]; // | x, y, z| positive: right, up, towards player -- in m/s^2