bevyglobalinput

Global Mouse and Keyboard events for bevy.

Crates.io Docs.rs

Features

Not Implemented / TODO

Quickstart

log out global mouse position every half second.

```rust use std::time::Duration;

use bevy::{prelude::*, time::commonconditions::ontimer}; use bevyglobalinput::{GlobalInputPlugins, GlobalMousePos};

fn main() { App::new() .addplugins(MinimalPlugins) .addplugins(GlobalInputPlugins) .addsystems( Update, mousepos.runif(ontimer(Duration::fromsecsf32(0.5))), ); // .run(); }

fn mouse_pos(pos: Res) { dbg!(pos); } ```

Find more in Examples

compatible bevy versions

| bevy | bevyglobalinput | | ---- | ----------------- | | 0.11 | 0.4.0 | | 0.10 | 0.3.0 | | 0.9 | 0.2.0 | | 0.9 | 0.1.0 |