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: Vec2
Implementations§
Source§impl XrController
impl XrController
pub const CLICK_X: u16 = 1u16
pub const CLICK_Y: u16 = 2u16
pub const CLICK_A: u16 = 4u16
pub const CLICK_B: u16 = 8u16
pub const CLICK_MENU: u16 = 16u16
pub const ACTIVE: u16 = 32u16
pub const CLICK_THUMBSTICK: u16 = 64u16
pub const TOUCH_X: u16 = 128u16
pub const TOUCH_Y: u16 = 256u16
pub const TOUCH_A: u16 = 512u16
pub const TOUCH_B: u16 = 1_024u16
pub const TOUCH_THUMBSTICK: u16 = 2_048u16
pub const TOUCH_TRIGGER: u16 = 4_096u16
pub const TOUCH_THUMBREST: u16 = 8_192u16
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 copy 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 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 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