bevy_input: build warnings without bevy_reflect (#19862)
# Objective - bevy_input has build warnings when bevy_reflect isn't enabled ## Solution - Fix them ## Testing `cargo build -p bevy_input --no-default-features --features bevy_math/libm`
This commit is contained in:
parent
c077c65ddd
commit
e6e731017d
@ -60,12 +60,13 @@ use touch::{touch_screen_input_system, TouchInput, Touches};
|
|||||||
#[cfg(feature = "bevy_reflect")]
|
#[cfg(feature = "bevy_reflect")]
|
||||||
use gamepad::Gamepad;
|
use gamepad::Gamepad;
|
||||||
use gamepad::{
|
use gamepad::{
|
||||||
gamepad_connection_system, gamepad_event_processing_system, GamepadAxis,
|
gamepad_connection_system, gamepad_event_processing_system, GamepadAxisChangedEvent,
|
||||||
GamepadAxisChangedEvent, GamepadButton, GamepadButtonChangedEvent,
|
GamepadButtonChangedEvent, GamepadButtonStateChangedEvent, GamepadConnectionEvent,
|
||||||
GamepadButtonStateChangedEvent, GamepadConnection, GamepadConnectionEvent, GamepadEvent,
|
GamepadEvent, GamepadRumbleRequest, RawGamepadAxisChangedEvent, RawGamepadButtonChangedEvent,
|
||||||
GamepadInput, GamepadRumbleRequest, GamepadSettings, RawGamepadAxisChangedEvent,
|
RawGamepadEvent,
|
||||||
RawGamepadButtonChangedEvent, RawGamepadEvent,
|
|
||||||
};
|
};
|
||||||
|
#[cfg(feature = "bevy_reflect")]
|
||||||
|
use gamepad::{GamepadAxis, GamepadButton, GamepadConnection, GamepadInput, GamepadSettings};
|
||||||
|
|
||||||
#[cfg(all(feature = "serialize", feature = "bevy_reflect"))]
|
#[cfg(all(feature = "serialize", feature = "bevy_reflect"))]
|
||||||
use bevy_reflect::{ReflectDeserialize, ReflectSerialize};
|
use bevy_reflect::{ReflectDeserialize, ReflectSerialize};
|
||||||
|
Loading…
Reference in New Issue
Block a user