Fix compilation warnings
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
use bevy::math::Vec2;
|
||||
use bevy::prelude::*;
|
||||
use fixed::traits::Fixed;
|
||||
|
||||
use crate::game_settings::GameSettings;
|
||||
use crate::input::map::GamepadBinding;
|
||||
use crate::input::{BaseInputMap, FighterInputFrame, InputMapAction};
|
||||
use crate::math::int::FGi32;
|
||||
use crate::math::vec::FGVec2;
|
||||
|
||||
pub fn sample_gamepad(pad: &Gamepad, input_map: &BaseInputMap, _game_settings: &GameSettings) -> FighterInputFrame {
|
||||
pub fn sample_gamepad(pad: &Gamepad, input_map: &BaseInputMap) -> FighterInputFrame {
|
||||
let mut input_frame = FighterInputFrame::default();
|
||||
let mut movement = Vec2::ZERO;
|
||||
|
||||
|
||||
+1
-1
@@ -134,7 +134,7 @@ fn read_local_inputs(
|
||||
.and_then(|entity| gamepads.get(entity).ok());
|
||||
|
||||
let mut input_frame = match gamepad {
|
||||
Some(pad) => gamepad::sample_gamepad(pad, &input_map, &game_settings),
|
||||
Some(pad) => gamepad::sample_gamepad(pad, &input_map),
|
||||
None => keyboard::sample_keyboard(&key, &input_map),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user