mirror of
https://github.com/speedypotato/Pico-Game-Controller.git
synced 2026-10-01 11:17:56 +03:00
Restore Y report
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user