Restore Y report

This commit is contained in:
veroxzik
2024-04-28 15:55:12 -04:00
committed by GitHub
parent 2cfdbf242d
commit b247424cc8
+2
View File
@@ -91,6 +91,7 @@ void update_lights() {
struct report {
uint16_t buttons;
uint8_t joy0;
uint8_t joy1;
} report;
/**
@@ -109,6 +110,7 @@ void joy_mode() {
}
report.joy0 = ((double)cur_enc_val[0] / ENC_PULSE) * (UINT8_MAX + 1);
report.joy1 = 127;
tud_hid_n_report(0x00, REPORT_ID_JOYSTICK, &report, sizeof(report));
}