forked from NaxdyOrg/NaxGCC-FW
fix(input): adapt to param change
This commit is contained in:
parent
2d7239c04a
commit
5eaf18993e
1 changed files with 4 additions and 8 deletions
12
src/input.rs
12
src/input.rs
|
@ -258,8 +258,7 @@ async fn update_stick_states(
|
||||||
pos_x,
|
pos_x,
|
||||||
pos_y,
|
pos_y,
|
||||||
controlstick_params,
|
controlstick_params,
|
||||||
controller_config,
|
&controller_config.astick_config,
|
||||||
Stick::ControlStick,
|
|
||||||
is_calibrating,
|
is_calibrating,
|
||||||
) {
|
) {
|
||||||
(x, y) => XyValuePair { x, y },
|
(x, y) => XyValuePair { x, y },
|
||||||
|
@ -268,8 +267,7 @@ async fn update_stick_states(
|
||||||
pos_cx_filt,
|
pos_cx_filt,
|
||||||
pos_cy_filt,
|
pos_cy_filt,
|
||||||
cstick_params,
|
cstick_params,
|
||||||
controller_config,
|
&controller_config.cstick_config,
|
||||||
Stick::CStick,
|
|
||||||
is_calibrating,
|
is_calibrating,
|
||||||
) {
|
) {
|
||||||
(x, y) => XyValuePair { x, y },
|
(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.x,
|
||||||
raw_stick_values.a_linearized.y,
|
raw_stick_values.a_linearized.y,
|
||||||
controlstick_params,
|
controlstick_params,
|
||||||
controller_config,
|
&controller_config.astick_config,
|
||||||
Stick::ControlStick,
|
|
||||||
is_calibrating,
|
is_calibrating,
|
||||||
) {
|
) {
|
||||||
(x, y) => XyValuePair { x, y },
|
(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.x,
|
||||||
raw_stick_values.c_linearized.y,
|
raw_stick_values.c_linearized.y,
|
||||||
cstick_params,
|
cstick_params,
|
||||||
controller_config,
|
&controller_config.cstick_config,
|
||||||
Stick::CStick,
|
|
||||||
is_calibrating,
|
is_calibrating,
|
||||||
) {
|
) {
|
||||||
(x, y) => XyValuePair { x, y },
|
(x, y) => XyValuePair { x, y },
|
||||||
|
|
Loading…
Reference in a new issue