wasm-module: add get_game_controls

This commit is contained in:
2026-03-06 08:48:07 -08:00
parent 6fbeba94ae
commit 9e0e9a62e7
2 changed files with 7 additions and 0 deletions

View File

@@ -179,4 +179,8 @@ impl PlaybackHead{
use glam::Vec3Swizzles;
velocity.xz().length()
}
#[wasm_bindgen]
pub fn get_game_controls(&self)->u32{
self.head.state().get_controls().bits()
}
}