pub struct OpenXrUiInputOptions {
pub enabled: bool,
pub controllers: bool,
pub hands: bool,
pub trigger_threshold: f32,
pub pinch_threshold: f32,
pub scroll_deadzone: f32,
pub scroll_pixels_per_second: f32,
pub pointer_selection: OpenXrPointerSelectionPolicy,
}Expand description
Input sources, thresholds, scroll scaling, and selection policy.
Trigger and pinch thresholds are compared directly with runtime values; scroll deadzone is absolute axis magnitude and scroll speed is logical pixels per second. Poll deltas are capped at 100 ms before scaling.
§Examples
use ailloli_ui_openxr::OpenXrUiInputOptions;
let options = OpenXrUiInputOptions::default();
assert_eq!(options.trigger_threshold, 0.75);
assert_eq!(options.scroll_pixels_per_second, 720.0);Fields§
§enabled: boolWhether action creation and polling are enabled at all.
controllers: boolWhether controller aim, trigger, and thumbstick actions are considered.
hands: boolWhether extension hand tracking may provide pointer candidates.
trigger_threshold: f32Inclusive controller-trigger pressed threshold.
pinch_threshold: f32Inclusive FB hand-aim pinch-strength threshold.
scroll_deadzone: f32Absolute thumbstick magnitude below which scroll is zero.
scroll_pixels_per_second: f32Full-deflection scroll speed in logical pixels per second.
pointer_selection: OpenXrPointerSelectionPolicyDeterministic preference when several sources are available.
Trait Implementations§
Source§impl Clone for OpenXrUiInputOptions
impl Clone for OpenXrUiInputOptions
Source§fn clone(&self) -> OpenXrUiInputOptions
fn clone(&self) -> OpenXrUiInputOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OpenXrUiInputOptions
impl Debug for OpenXrUiInputOptions
Source§impl Default for OpenXrUiInputOptions
impl Default for OpenXrUiInputOptions
Source§impl PartialEq for OpenXrUiInputOptions
impl PartialEq for OpenXrUiInputOptions
impl Copy for OpenXrUiInputOptions
impl StructuralPartialEq for OpenXrUiInputOptions
Auto Trait Implementations§
impl Freeze for OpenXrUiInputOptions
impl RefUnwindSafe for OpenXrUiInputOptions
impl Send for OpenXrUiInputOptions
impl Sync for OpenXrUiInputOptions
impl Unpin for OpenXrUiInputOptions
impl UnwindSafe for OpenXrUiInputOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().