2022-05-16 13:53:20 +00:00
|
|
|
//! Prints out all touch inputs.
|
|
|
|
|
2020-10-18 20:20:42 +00:00
|
|
|
use bevy::{input::touch::*, prelude::*};
|
|
|
|
|
|
|
|
fn main() {
|
2021-07-27 20:21:06 +00:00
|
|
|
App::new()
|
2020-11-03 03:01:17 +00:00
|
|
|
.add_plugins(DefaultPlugins)
|
2023-03-18 01:45:34 +00:00
|
|
|
.add_systems(Update, touch_event_system)
|
2020-10-18 20:20:42 +00:00
|
|
|
.run();
|
|
|
|
}
|
|
|
|
|
2021-01-19 06:23:30 +00:00
|
|
|
fn touch_event_system(mut touch_events: EventReader<TouchInput>) {
|
2023-08-30 14:20:03 +00:00
|
|
|
for event in touch_events.read() {
|
2021-04-22 23:30:48 +00:00
|
|
|
info!("{:?}", event);
|
2020-10-18 20:20:42 +00:00
|
|
|
}
|
|
|
|
}
|