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:
François Mockers 2025-06-29 19:13:43 +02:00 committed by GitHub
parent c077c65ddd
commit e6e731017d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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};