forked from StrafesNET/roblox-bot-player
wasm-module: add get_game_controls
This commit is contained in:
@@ -246,4 +246,7 @@ impl PlaybackState{
|
||||
(sens_x,sens_x*self.vertical_sensitivity_multipler)
|
||||
}
|
||||
}
|
||||
pub const fn get_controls(&self)->v0::GameControls{
|
||||
self.game_controls
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user