Skip to content

Commit

Permalink
Reorder fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Oct 9, 2024
1 parent f378984 commit 920f9e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ impl InputReader<'_, '_> {
fn reset_input(&mut self) {
self.tracker.key_codes.clear();
self.tracker.modifiers = KeyboardModifiers::empty();
self.tracker.mouse_buttons.clear();
self.tracker.mouse_motion = None;
self.tracker.mouse_wheel = None;
self.tracker.mouse_buttons.clear();
self.tracker.gamepad_buttons.clear();
self.tracker.gamepad_axes.clear();
}
Expand Down Expand Up @@ -229,9 +229,9 @@ struct InputTracker {
ignore_mouse: bool,
key_codes: HashMap<KeyCode, ActionValue>,
modifiers: KeyboardModifiers,
mouse_buttons: HashMap<MouseButton, ActionValue>,
mouse_motion: Option<ActionValue>,
mouse_wheel: Option<ActionValue>,
mouse_buttons: HashMap<MouseButton, ActionValue>,
gamepad_buttons: HashMap<GamepadButton, ActionValue>,
gamepad_axes: HashMap<GamepadAxis, ActionValue>,
}
Expand Down

0 comments on commit 920f9e4

Please sign in to comment.