From 5eaf18993ed50ec571579f1ab1df18fa200d2af1 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Fri, 29 Mar 2024 19:56:49 +0100 Subject: [PATCH] fix(input): adapt to param change --- src/input.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/input.rs b/src/input.rs index 309b0d2..244e8cd 100644 --- a/src/input.rs +++ b/src/input.rs @@ -258,8 +258,7 @@ async fn update_stick_states( pos_x, pos_y, controlstick_params, - controller_config, - Stick::ControlStick, + &controller_config.astick_config, is_calibrating, ) { (x, y) => XyValuePair { x, y }, @@ -268,8 +267,7 @@ async fn update_stick_states( pos_cx_filt, pos_cy_filt, cstick_params, - controller_config, - Stick::CStick, + &controller_config.cstick_config, is_calibrating, ) { (x, y) => XyValuePair { x, y }, @@ -278,8 +276,7 @@ async fn update_stick_states( raw_stick_values.a_linearized.x, raw_stick_values.a_linearized.y, controlstick_params, - controller_config, - Stick::ControlStick, + &controller_config.astick_config, is_calibrating, ) { (x, y) => XyValuePair { x, y }, @@ -288,8 +285,7 @@ async fn update_stick_states( raw_stick_values.c_linearized.x, raw_stick_values.c_linearized.y, cstick_params, - controller_config, - Stick::CStick, + &controller_config.cstick_config, is_calibrating, ) { (x, y) => XyValuePair { x, y },