I also found much more compact way to write debug/technical input
type Kbd<'w> = Res<'w, ButtonInput<KeyCode>>;
type Mouse<'w> = Res<'w, ButtonInput<MouseButton>>;
// ...
.add_systems(Update, (
grab_cursor.run_if(|k: Mouse| k.just_pressed(MouseButton::Left)),
release_cursor.run_if(|k: Kbd| k.just_pressed(KeyCode::Escape)),
toggle_free_camera.run_if(|k: Kbd| k.just_pressed(KeyCode::KeyC)),
))
Maybe it would be worth adding to BEI some short syntax for such case?







sane and rational application developed by premium enterprise developers truly
