mirror of
https://github.com/dualshock-tools/dualshock-tools.github.io.git
synced 2026-03-01 11:19:54 +03:00
Open Quick Test when pressing L1 + Options on the controller
This commit is contained in:
@@ -875,6 +875,13 @@ function isRangeCalibrationVisible() {
|
|||||||
function handleControllerInput({ changes, inputConfig, touchPoints, batteryStatus }) {
|
function handleControllerInput({ changes, inputConfig, touchPoints, batteryStatus }) {
|
||||||
const { buttonMap } = inputConfig;
|
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
|
// Update range calibration modal stick visualization if visible
|
||||||
if (isRangeCalibrationVisible() && changes.sticks) {
|
if (isRangeCalibrationVisible() && changes.sticks) {
|
||||||
collectCircularityData(changes.sticks, ll_data, rr_data);
|
collectCircularityData(changes.sticks, ll_data, rr_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user