Skip to content

Commit

Permalink
Rename the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Shute052 committed Jan 30, 2024
1 parent 34ccc19 commit 732baa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/input_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ impl<A: Actionlike> InputMap<A> {
let mut action_datum = ActionData::default();

for input in input_vec {
if let Some(new_data) = input_streams.input_axis_pair(input) {
let current_data = action_datum.axis_pair.unwrap_or_default();
action_datum.axis_pair = Some(new_data.merged_with(current_data));
if let Some(new_axis_pair) = input_streams.input_axis_pair(input) {
let current_axis_pair = action_datum.axis_pair.unwrap_or_default();
action_datum.axis_pair = Some(new_axis_pair.merged_with(current_axis_pair));
}

if input_streams.input_pressed(input) {
Expand Down

0 comments on commit 732baa3

Please sign in to comment.