bevy/examples/input/touch_input_events.rs
2021-07-24 16:43:37 -07:00

14 lines
318 B
Rust

use bevy::{input::touch::*, prelude::*};
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_system(touch_event_system.system())
.run();
}
fn touch_event_system(mut touch_events: EventReader<TouchInput>) {
for event in touch_events.iter() {
info!("{:?}", event);
}
}