Trait hmdee::backend::HeadMountedDevice[][src]

pub trait HeadMountedDevice {
    fn product_name(&self) -> &'static str;
fn orientation(&self) -> Quaternion;
fn button(&self, button: Button) -> ButtonState;
fn properties(&self) -> &Properties;
fn update(&mut self) -> Result<(), Error>;
fn power_on(&mut self) -> Result<(), Error>;
fn power_off(&mut self) -> Result<(), Error>; }

A head mounted device.

Required methods

fn product_name(&self) -> &'static str[src]

Gets the product name of the HMD.

fn orientation(&self) -> Quaternion[src]

Gets the orientation of the headset.

fn button(&self, button: Button) -> ButtonState[src]

Gets the state of a button.

fn properties(&self) -> &Properties[src]

Get information about the headset.

fn update(&mut self) -> Result<(), Error>[src]

Updates the headset state from a context.

This should be called often.

fn power_on(&mut self) -> Result<(), Error>[src]

Powers on the headset.

Contract: If the device is already on, nothing should happen.

fn power_off(&mut self) -> Result<(), Error>[src]

Powers off the headset.

Loading content...

Implementors

impl HeadMountedDevice for Psvr[src]

impl<'context> HeadMountedDevice for Headset<'context>[src]

Loading content...