Open Quick Test when pressing L1 + Options on the controller

This commit is contained in:
Mathias Malmqvist
2025-11-26 18:44:55 +01:00
parent bd13f66c1c
commit a6259a0bbc

View File

@@ -875,6 +875,13 @@ function isRangeCalibrationVisible() {
function handleControllerInput({ changes, inputConfig, touchPoints, batteryStatus }) {
const { buttonMap } = inputConfig;
// Open Quick Test modal if options button is pressed while L1 is held down
if (changes.options && controller.button_states.l1) {
update_ds_button_svg({ l1: false }, buttonMap); // Clear L1
show_quick_test_modal(controller);
return;
}
// Update range calibration modal stick visualization if visible
if (isRangeCalibrationVisible() && changes.sticks) {
collectCircularityData(changes.sticks, ll_data, rr_data);