pub struct XrController {
pub grip_pose: Pose,
pub aim_pose: Pose,
pub trigger: f32,
pub grip: f32,
pub buttons: u16,
pub stick: Vec2,
}Fields§
§grip_pose: Pose§aim_pose: Pose§trigger: f32§grip: f32§stick: Vec2Implementations§
Source§impl XrController
impl XrController
pub const CLICK_X: u16
pub const CLICK_Y: u16
pub const CLICK_A: u16
pub const CLICK_B: u16
pub const CLICK_MENU: u16
pub const ACTIVE: u16
pub const CLICK_THUMBSTICK: u16
pub const TOUCH_X: u16
pub const TOUCH_Y: u16
pub const TOUCH_A: u16
pub const TOUCH_B: u16
pub const TOUCH_THUMBSTICK: u16
pub const TOUCH_TRIGGER: u16
pub const TOUCH_THUMBREST: u16
pub fn triggered(&self) -> bool
pub fn active(&self) -> bool
pub fn click_x(&self) -> bool
pub fn click_y(&self) -> bool
pub fn click_a(&self) -> bool
pub fn click_b(&self) -> bool
pub fn click_thumbstick(&self) -> bool
pub fn touch_x(&self) -> bool
pub fn touch_y(&self) -> bool
pub fn touch_a(&self) -> bool
pub fn touch_b(&self) -> bool
pub fn touch_thumbstick(&self) -> bool
pub fn touch_trigger(&self) -> bool
pub fn touch_thumbrest(&self) -> bool
Trait Implementations§
Source§impl Clone for XrController
impl Clone for XrController
Source§fn clone(&self) -> XrController
fn clone(&self) -> XrController
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DeBin for XrController
impl DeBin for XrController
Source§impl Debug for XrController
impl Debug for XrController
Source§impl Default for XrController
impl Default for XrController
Source§fn default() -> XrController
fn default() -> XrController
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for XrController
impl RefUnwindSafe for XrController
impl Send for XrController
impl Sync for XrController
impl Unpin for XrController
impl UnsafeUnpin for XrController
impl UnwindSafe for XrController
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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