Send controller events from usbhidd

This commit is contained in:
Jeremy Soller
2026-06-23 20:21:40 -06:00
parent 759b3cfeec
commit 4fc813f3ef
4 changed files with 265 additions and 305 deletions
+12
View File
@@ -429,6 +429,18 @@ impl SchemeSync for InputScheme {
}
},
// Set ID for controller events
EventOption::ControllerAxis(mut axis_event) => {
//TODO: what to do with overflow?
axis_event.id = id as u32;
events.to_mut()[i] = axis_event.to_event();
}
EventOption::ControllerButton(mut button_event) => {
//TODO: what to do with overflow?
button_event.id = id as u32;
events.to_mut()[i] = button_event.to_event();
}
_ => continue,
}