GamepadPoseMethods

pub trait GamepadPoseMethods<D: DomTypes> {
    // Required methods
    fn HasOrientation(&self) -> bool;
    fn HasPosition(&self) -> bool;
    fn GetPosition(
        &self,
        cx: SafeJSContext,
    ) -> Option<RootedTraceableBox<HeapFloat32Array>>;
    fn GetLinearVelocity(
        &self,
        cx: SafeJSContext,
    ) -> Option<RootedTraceableBox<HeapFloat32Array>>;
    fn GetLinearAcceleration(
        &self,
        cx: SafeJSContext,
    ) -> Option<RootedTraceableBox<HeapFloat32Array>>;
    fn GetOrientation(
        &self,
        cx: SafeJSContext,
    ) -> Option<RootedTraceableBox<HeapFloat32Array>>;
    fn GetAngularVelocity(
        &self,
        cx: SafeJSContext,
    ) -> Option<RootedTraceableBox<HeapFloat32Array>>;
    fn GetAngularAcceleration(
        &self,
        cx: SafeJSContext,
    ) -> Option<RootedTraceableBox<HeapFloat32Array>>;
}

Required Methods§

Implementors§