Add core handling for pointing device failures. (#25315)

This commit is contained in:
Dasky 2025-06-14 13:55:35 +01:00 committed by GitHub
parent a4436b32df
commit 7919848324
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 300 additions and 197 deletions

View file

@ -135,7 +135,7 @@ report_analog_joystick_t analog_joystick_read(void) {
return report;
}
void analog_joystick_init(void) {
bool analog_joystick_init(void) {
gpio_set_pin_input_high(ANALOG_JOYSTICK_X_AXIS_PIN);
gpio_set_pin_input_high(ANALOG_JOYSTICK_Y_AXIS_PIN);
@ -152,6 +152,8 @@ void analog_joystick_init(void) {
maxAxisValues[0] = xOrigin + 100;
maxAxisValues[1] = yOrigin + 100;
#endif
return true;
}
report_mouse_t analog_joystick_get_report(report_mouse_t mouse_report) {