feat: migrate to glam whenever relevant + migrate testbed to kiss3d instead of bevy + release v0.32.0 (#909)

* feat: migrate to glam whenever relevant + migrate testbed to kiss3d instead of bevy

* chore: update changelog

* Fix warnings and tests

* Release v0.32.0
This commit is contained in:
Sébastien Crozet
2026-01-09 17:26:36 +01:00
committed by GitHub
parent 48de83817e
commit 0b7c3b34ec
265 changed files with 8501 additions and 8575 deletions

View File

@@ -0,0 +1,24 @@
//! Keyboard state tracking.
use kiss3d::event::Key;
/// Keyboard state
#[derive(Default, Clone, Debug)]
pub struct KeysState {
pub shift: bool,
pub ctrl: bool,
pub alt: bool,
pub pressed_keys: Vec<Key>,
}
impl KeysState {
/// Check if a specific key is currently pressed
pub fn pressed(&self, key: Key) -> bool {
self.pressed_keys.contains(&key)
}
/// Get all currently pressed keys
pub fn get_pressed(&self) -> &[Key] {
&self.pressed_keys
}
}