pub struct InputFrame {
pub sequence: u32,
pub move_x: f32,
pub move_z: f32,
pub yaw: f32,
pub pitch: f32,
pub buttons: u8,
}Fields§
§sequence: u32§move_x: f32Strafe right in [-1, 1].
move_z: f32Move forward in [-1, 1]; yaw zero faces negative Z.
yaw: f32§pitch: f32Positive pitch looks up.
Implementations§
Source§impl InputFrame
impl InputFrame
Trait Implementations§
Source§impl Clone for InputFrame
impl Clone for InputFrame
Source§fn clone(&self) -> InputFrame
fn clone(&self) -> InputFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputFrame
impl Debug for InputFrame
Source§impl Default for InputFrame
impl Default for InputFrame
Source§fn default() -> InputFrame
fn default() -> InputFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for InputFrame
impl PartialEq for InputFrame
impl Copy for InputFrame
impl StructuralPartialEq for InputFrame
Auto Trait Implementations§
impl Freeze for InputFrame
impl RefUnwindSafe for InputFrame
impl Send for InputFrame
impl Sync for InputFrame
impl Unpin for InputFrame
impl UnwindSafe for InputFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more