Skip to content
Snippets Groups Projects
Verified Commit 670a5667 authored by Louis's avatar Louis :fire:
Browse files

Debug gamepad info

parent 38eff07f
No related branches found
No related tags found
No related merge requests found
......@@ -1455,7 +1455,7 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412"
dependencies = [
"libloading 0.7.4",
"libloading 0.8.0",
]
[[package]]
......
mod _plugin {
use crate::system::AppState;
use bevy::prelude::*;
use bevy::time::common_conditions::on_fixed_timer;
use bevy_rapier2d::prelude::*;
use std::time::Duration;
pub struct DebugPlugin;
impl Plugin for DebugPlugin {
......@@ -12,7 +14,12 @@ mod _plugin {
RigidBody::Fixed,
Collider::cuboid(200.0, 50.0),
));
});
})
.add_systems(
Update,
(|gamepads: Res<Gamepads>| info!("{:?}", gamepads))
.run_if(on_fixed_timer(Duration::from_secs(5))),
);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment