Skip to content

Commit

Permalink
Remove unnecessary swizzle (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim authored Sep 8, 2024
1 parent b2d706a commit a123723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/default_controls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn use_actions(query: Query<&ActionState<PlayerAction>, With<Player>>) {
if action_state.axis_pair(&PlayerAction::Run) != Vec2::ZERO {
println!(
"Moving in direction {}",
action_state.clamped_axis_pair(&PlayerAction::Run).xy()
action_state.clamped_axis_pair(&PlayerAction::Run)
);
}

Expand Down

0 comments on commit a123723

Please sign in to comment.