bevy 0.18.1

A refreshingly simple data-driven game engine and app framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Prints out all touch inputs.

use bevy::{input::touch::*, prelude::*};

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_systems(Update, touch_event_system)
        .run();
}

fn touch_event_system(mut touch_inputs: MessageReader<TouchInput>) {
    for touch_input in touch_inputs.read() {
        info!("{:?}", touch_input);
    }
}