Saner enum names

This commit is contained in:
Benjamin Saunders
2017-07-06 23:57:18 -07:00
parent 2695258ab2
commit 6d122b1a66
9 changed files with 322 additions and 322 deletions

View File

@ -16,7 +16,7 @@ repository = "https://github.com/rust-openvr/rust-openvr"
description = "A safe binding for openvr." description = "A safe binding for openvr."
[dependencies] [dependencies]
openvr_sys = { git = "https://github.com/Ralith/rust-openvr-sys.git", branch = "update" } openvr_sys = { git = "https://github.com/Ralith/rust-openvr-sys.git", branch = "enum-rename" }
[dev_dependencies] [dev_dependencies]
glium = "0.14.0" glium = "0.14.0"

View File

@ -59,7 +59,7 @@ impl<'a> Compositor<'a> {
let mut result: WaitPoses = mem::uninitialized(); let mut result: WaitPoses = mem::uninitialized();
let e = self.0.WaitGetPoses.unwrap()(result.render.as_mut().as_mut_ptr() as *mut _, result.render.len() as u32, let e = self.0.WaitGetPoses.unwrap()(result.render.as_mut().as_mut_ptr() as *mut _, result.render.len() as u32,
result.game.as_mut().as_mut_ptr() as *mut _, result.game.len() as u32); result.game.as_mut().as_mut_ptr() as *mut _, result.game.len() as u32);
if e == sys::EVRCompositorError_EVRCompositorError_VRCompositorError_None { if e == sys::EVRCompositorError_VRCompositorError_None {
Ok(result) Ok(result)
} else { } else {
Err(CompositorError(e)) Err(CompositorError(e))
@ -77,9 +77,9 @@ impl<'a> Compositor<'a> {
pub unsafe fn submit(&self, eye: Eye, texture: &Texture, bounds: Option<&texture::Bounds>) -> Result<(), CompositorError> { pub unsafe fn submit(&self, eye: Eye, texture: &Texture, bounds: Option<&texture::Bounds>) -> Result<(), CompositorError> {
use self::texture::Handle::*; use self::texture::Handle::*;
let flags = match texture.handle { let flags = match texture.handle {
Vulkan(_) => sys::EVRSubmitFlags_EVRSubmitFlags_Submit_Default, Vulkan(_) => sys::EVRSubmitFlags_Submit_Default,
OpenGLTexture(_) => sys::EVRSubmitFlags_EVRSubmitFlags_Submit_Default, OpenGLTexture(_) => sys::EVRSubmitFlags_Submit_Default,
OpenGLRenderBuffer(_) => sys::EVRSubmitFlags_EVRSubmitFlags_Submit_GlRenderBuffer, OpenGLRenderBuffer(_) => sys::EVRSubmitFlags_Submit_GlRenderBuffer,
}; };
let texture = sys::Texture_t { let texture = sys::Texture_t {
handle: match texture.handle { handle: match texture.handle {
@ -88,9 +88,9 @@ impl<'a> Compositor<'a> {
OpenGLRenderBuffer(x) => x as *mut _, OpenGLRenderBuffer(x) => x as *mut _,
}, },
eType: match texture.handle { eType: match texture.handle {
Vulkan(_) => sys::ETextureType_ETextureType_TextureType_Vulkan, Vulkan(_) => sys::ETextureType_TextureType_Vulkan,
OpenGLTexture(_) => sys::ETextureType_ETextureType_TextureType_OpenGL, OpenGLTexture(_) => sys::ETextureType_TextureType_OpenGL,
OpenGLRenderBuffer(_) => sys::ETextureType_ETextureType_TextureType_OpenGL, OpenGLRenderBuffer(_) => sys::ETextureType_TextureType_OpenGL,
}, },
eColorSpace: texture.color_space as sys::EColorSpace, eColorSpace: texture.color_space as sys::EColorSpace,
}; };
@ -99,7 +99,7 @@ impl<'a> Compositor<'a> {
&texture as *const _ as *mut _, &texture as *const _ as *mut _,
bounds.map(|x| x as *const _ as *mut texture::Bounds as *mut _).unwrap_or(ptr::null_mut()), bounds.map(|x| x as *const _ as *mut texture::Bounds as *mut _).unwrap_or(ptr::null_mut()),
flags); flags);
if e == sys::EVRCompositorError_EVRCompositorError_VRCompositorError_None { if e == sys::EVRCompositorError_VRCompositorError_None {
Ok(()) Ok(())
} else { } else {
Err(CompositorError(e)) Err(CompositorError(e))
@ -130,17 +130,17 @@ pub struct CompositorError(sys::EVRCompositorError);
pub mod compositor_error { pub mod compositor_error {
use super::*; use super::*;
pub const REQUEST_FAILED: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_RequestFailed); pub const REQUEST_FAILED: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_RequestFailed);
pub const INCOMPATIBLE_VERSION: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_IncompatibleVersion); pub const INCOMPATIBLE_VERSION: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_IncompatibleVersion);
pub const DO_NOT_HAVE_FOCUS: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_DoNotHaveFocus); pub const DO_NOT_HAVE_FOCUS: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_DoNotHaveFocus);
pub const INVALID_TEXTURE: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_InvalidTexture); pub const INVALID_TEXTURE: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_InvalidTexture);
pub const IS_NOT_SCENE_APPLICATION: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_IsNotSceneApplication); pub const IS_NOT_SCENE_APPLICATION: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_IsNotSceneApplication);
pub const TEXTURE_IS_ON_WRONG_DEVICE: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice); pub const TEXTURE_IS_ON_WRONG_DEVICE: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice);
pub const TEXTURE_USES_UNSUPPORTED_FORMAT: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat); pub const TEXTURE_USES_UNSUPPORTED_FORMAT: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat);
pub const SHARED_TEXTURES_NOT_SUPPORTED: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_SharedTexturesNotSupported); pub const SHARED_TEXTURES_NOT_SUPPORTED: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_SharedTexturesNotSupported);
pub const INDEX_OUT_OF_RANGE: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_IndexOutOfRange); pub const INDEX_OUT_OF_RANGE: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_IndexOutOfRange);
pub const ALREADY_SUBMITTED: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_AlreadySubmitted); pub const ALREADY_SUBMITTED: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_AlreadySubmitted);
pub const INVALID_BOUNDS: CompositorError = CompositorError(sys::EVRCompositorError_EVRCompositorError_VRCompositorError_InvalidBounds); pub const INVALID_BOUNDS: CompositorError = CompositorError(sys::EVRCompositorError_VRCompositorError_InvalidBounds);
} }
impl fmt::Debug for CompositorError { impl fmt::Debug for CompositorError {

View File

@ -39,7 +39,7 @@ pub enum Handle {
#[derive(Debug, Copy, Clone, Eq, PartialEq)] #[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum ColorSpace { pub enum ColorSpace {
Auto = sys::EColorSpace_EColorSpace_ColorSpace_Auto as isize, Auto = sys::EColorSpace_ColorSpace_Auto as isize,
Gamma = sys::EColorSpace_EColorSpace_ColorSpace_Gamma as isize, Gamma = sys::EColorSpace_ColorSpace_Gamma as isize,
Linear = sys::EColorSpace_EColorSpace_ColorSpace_Linear as isize, Linear = sys::EColorSpace_ColorSpace_Linear as isize,
} }

View File

@ -31,14 +31,14 @@ pub fn init(ty: ApplicationType) -> Result<Context, InitError> {
panic!("OpenVR has already been initialized!"); panic!("OpenVR has already been initialized!");
} }
let mut error = sys::EVRInitError_EVRInitError_VRInitError_None; let mut error = sys::EVRInitError_VRInitError_None;
unsafe { sys::VR_InitInternal(&mut error, ty as sys::EVRApplicationType) }; unsafe { sys::VR_InitInternal(&mut error, ty as sys::EVRApplicationType) };
if error != sys::EVRInitError_EVRInitError_VRInitError_None { if error != sys::EVRInitError_VRInitError_None {
return Err(InitError(error)); return Err(InitError(error));
} }
if !unsafe { sys::VR_IsInterfaceVersionValid(sys::IVRSystem_Version.as_ptr() as *const i8) } { if !unsafe { sys::VR_IsInterfaceVersionValid(sys::IVRSystem_Version.as_ptr() as *const i8) } {
unsafe { sys::VR_ShutdownInternal() } unsafe { sys::VR_ShutdownInternal() }
return Err(InitError(sys::EVRInitError_EVRInitError_VRInitError_Init_InterfaceNotFound)); return Err(InitError(sys::EVRInitError_VRInitError_Init_InterfaceNotFound));
} }
Ok(Context {}) Ok(Context {})
} }
@ -55,10 +55,10 @@ pub struct Context {}
fn load<T>(suffix: &[u8]) -> Result<*const T, InitError> { fn load<T>(suffix: &[u8]) -> Result<*const T, InitError> {
let mut magic = Vec::from(b"FnTable:".as_ref()); let mut magic = Vec::from(b"FnTable:".as_ref());
magic.extend(suffix); magic.extend(suffix);
let mut error = sys::EVRInitError_EVRInitError_VRInitError_None; let mut error = sys::EVRInitError_VRInitError_None;
let result = unsafe { sys::VR_GetGenericInterface(magic.as_ptr() as *const i8, &mut error) }; let result = unsafe { sys::VR_GetGenericInterface(magic.as_ptr() as *const i8, &mut error) };
if error != sys::EVRInitError_EVRInitError_VRInitError_None { if error != sys::EVRInitError_VRInitError_None {
return Err(InitError(sys::EVRInitError_EVRInitError_VRInitError_Init_InterfaceNotFound)); return Err(InitError(sys::EVRInitError_VRInitError_Init_InterfaceNotFound));
} }
Ok(result as *const T) Ok(result as *const T)
} }
@ -79,23 +79,23 @@ impl Drop for Context {
#[derive(Debug, Copy, Clone, Eq, PartialEq)] #[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum ApplicationType { pub enum ApplicationType {
/// Some other kind of application that isn't covered by the other entries /// Some other kind of application that isn't covered by the other entries
Other = sys::EVRApplicationType_EVRApplicationType_VRApplication_Other as isize, Other = sys::EVRApplicationType_VRApplication_Other as isize,
/// Application will submit 3D frames /// Application will submit 3D frames
Scene = sys::EVRApplicationType_EVRApplicationType_VRApplication_Scene as isize, Scene = sys::EVRApplicationType_VRApplication_Scene as isize,
/// Application only interacts with overlays /// Application only interacts with overlays
Overlay = sys::EVRApplicationType_EVRApplicationType_VRApplication_Overlay as isize, Overlay = sys::EVRApplicationType_VRApplication_Overlay as isize,
/// Application should not start SteamVR if it's not already running, and should not keep it running if everything /// Application should not start SteamVR if it's not already running, and should not keep it running if everything
/// else quits. /// else quits.
Background = sys::EVRApplicationType_EVRApplicationType_VRApplication_Background as isize, Background = sys::EVRApplicationType_VRApplication_Background as isize,
/// Init should not try to load any drivers. The application needs access to utility interfaces (like IVRSettings /// Init should not try to load any drivers. The application needs access to utility interfaces (like IVRSettings
/// and IVRApplications) but not hardware. /// and IVRApplications) but not hardware.
Utility = sys::EVRApplicationType_EVRApplicationType_VRApplication_Utility as isize, Utility = sys::EVRApplicationType_VRApplication_Utility as isize,
/// Reserved for vrmonitor /// Reserved for vrmonitor
VRMonitor = sys::EVRApplicationType_EVRApplicationType_VRApplication_VRMonitor as isize, VRMonitor = sys::EVRApplicationType_VRApplication_VRMonitor as isize,
/// Reserved for Steam /// Reserved for Steam
SteamWatchdog = sys::EVRApplicationType_EVRApplicationType_VRApplication_SteamWatchdog as isize, SteamWatchdog = sys::EVRApplicationType_VRApplication_SteamWatchdog as isize,
/// Start up SteamVR /// Start up SteamVR
Bootstrapper = sys::EVRApplicationType_EVRApplicationType_VRApplication_Bootstrapper as isize, Bootstrapper = sys::EVRApplicationType_VRApplication_Bootstrapper as isize,
} }
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
@ -127,6 +127,6 @@ impl fmt::Display for InitError {
#[derive(Debug, Copy, Clone, Eq, PartialEq)] #[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum Eye { pub enum Eye {
Left = sys::EVREye_EVREye_Eye_Left as isize, Left = sys::EVREye_Eye_Left as isize,
Right = sys::EVREye_EVREye_Eye_Right as isize, Right = sys::EVREye_Eye_Right as isize,
} }

View File

@ -3,121 +3,121 @@
use openvr_sys as sys; use openvr_sys as sys;
use super::TrackedDeviceProperty; use super::TrackedDeviceProperty;
pub const Invalid: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Invalid; pub const Invalid: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Invalid;
pub const TrackingSystemName_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_TrackingSystemName_String; pub const TrackingSystemName_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_TrackingSystemName_String;
pub const ModelNumber_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ModelNumber_String; pub const ModelNumber_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ModelNumber_String;
pub const SerialNumber_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_SerialNumber_String; pub const SerialNumber_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_SerialNumber_String;
pub const RenderModelName_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_RenderModelName_String; pub const RenderModelName_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_RenderModelName_String;
pub const WillDriftInYaw_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_WillDriftInYaw_Bool; pub const WillDriftInYaw_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_WillDriftInYaw_Bool;
pub const ManufacturerName_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ManufacturerName_String; pub const ManufacturerName_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ManufacturerName_String;
pub const TrackingFirmwareVersion_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_TrackingFirmwareVersion_String; pub const TrackingFirmwareVersion_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_TrackingFirmwareVersion_String;
pub const HardwareRevision_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_HardwareRevision_String; pub const HardwareRevision_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_HardwareRevision_String;
pub const AllWirelessDongleDescriptions_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_AllWirelessDongleDescriptions_String; pub const AllWirelessDongleDescriptions_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_AllWirelessDongleDescriptions_String;
pub const ConnectedWirelessDongle_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ConnectedWirelessDongle_String; pub const ConnectedWirelessDongle_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ConnectedWirelessDongle_String;
pub const DeviceIsWireless_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DeviceIsWireless_Bool; pub const DeviceIsWireless_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DeviceIsWireless_Bool;
pub const DeviceIsCharging_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DeviceIsCharging_Bool; pub const DeviceIsCharging_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DeviceIsCharging_Bool;
pub const DeviceBatteryPercentage_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DeviceBatteryPercentage_Float; pub const DeviceBatteryPercentage_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DeviceBatteryPercentage_Float;
pub const StatusDisplayTransform_Matrix34: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_StatusDisplayTransform_Matrix34; pub const StatusDisplayTransform_Matrix34: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_StatusDisplayTransform_Matrix34;
pub const Firmware_UpdateAvailable_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Firmware_UpdateAvailable_Bool; pub const Firmware_UpdateAvailable_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Firmware_UpdateAvailable_Bool;
pub const Firmware_ManualUpdate_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Firmware_ManualUpdate_Bool; pub const Firmware_ManualUpdate_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Firmware_ManualUpdate_Bool;
pub const Firmware_ManualUpdateURL_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Firmware_ManualUpdateURL_String; pub const Firmware_ManualUpdateURL_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Firmware_ManualUpdateURL_String;
pub const HardwareRevision_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_HardwareRevision_Uint64; pub const HardwareRevision_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_HardwareRevision_Uint64;
pub const FirmwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_FirmwareVersion_Uint64; pub const FirmwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_FirmwareVersion_Uint64;
pub const FPGAVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_FPGAVersion_Uint64; pub const FPGAVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_FPGAVersion_Uint64;
pub const VRCVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_VRCVersion_Uint64; pub const VRCVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_VRCVersion_Uint64;
pub const RadioVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_RadioVersion_Uint64; pub const RadioVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_RadioVersion_Uint64;
pub const DongleVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DongleVersion_Uint64; pub const DongleVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DongleVersion_Uint64;
pub const BlockServerShutdown_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_BlockServerShutdown_Bool; pub const BlockServerShutdown_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_BlockServerShutdown_Bool;
pub const CanUnifyCoordinateSystemWithHmd_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_CanUnifyCoordinateSystemWithHmd_Bool; pub const CanUnifyCoordinateSystemWithHmd_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_CanUnifyCoordinateSystemWithHmd_Bool;
pub const ContainsProximitySensor_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ContainsProximitySensor_Bool; pub const ContainsProximitySensor_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ContainsProximitySensor_Bool;
pub const DeviceProvidesBatteryStatus_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DeviceProvidesBatteryStatus_Bool; pub const DeviceProvidesBatteryStatus_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DeviceProvidesBatteryStatus_Bool;
pub const DeviceCanPowerOff_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DeviceCanPowerOff_Bool; pub const DeviceCanPowerOff_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DeviceCanPowerOff_Bool;
pub const Firmware_ProgrammingTarget_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Firmware_ProgrammingTarget_String; pub const Firmware_ProgrammingTarget_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Firmware_ProgrammingTarget_String;
pub const DeviceClass_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DeviceClass_Int32; pub const DeviceClass_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DeviceClass_Int32;
pub const HasCamera_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_HasCamera_Bool; pub const HasCamera_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_HasCamera_Bool;
pub const DriverVersion_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DriverVersion_String; pub const DriverVersion_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DriverVersion_String;
pub const Firmware_ForceUpdateRequired_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Firmware_ForceUpdateRequired_Bool; pub const Firmware_ForceUpdateRequired_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Firmware_ForceUpdateRequired_Bool;
pub const ViveSystemButtonFixRequired_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ViveSystemButtonFixRequired_Bool; pub const ViveSystemButtonFixRequired_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ViveSystemButtonFixRequired_Bool;
pub const ParentDriver_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ParentDriver_Uint64; pub const ParentDriver_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ParentDriver_Uint64;
pub const ResourceRoot_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ResourceRoot_String; pub const ResourceRoot_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ResourceRoot_String;
pub const ReportsTimeSinceVSync_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool; pub const ReportsTimeSinceVSync_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool;
pub const SecondsFromVsyncToPhotons_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float; pub const SecondsFromVsyncToPhotons_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float;
pub const DisplayFrequency_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayFrequency_Float; pub const DisplayFrequency_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayFrequency_Float;
pub const UserIpdMeters_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_UserIpdMeters_Float; pub const UserIpdMeters_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_UserIpdMeters_Float;
pub const CurrentUniverseId_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_CurrentUniverseId_Uint64; pub const CurrentUniverseId_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_CurrentUniverseId_Uint64;
pub const PreviousUniverseId_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_PreviousUniverseId_Uint64; pub const PreviousUniverseId_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_PreviousUniverseId_Uint64;
pub const DisplayFirmwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayFirmwareVersion_Uint64; pub const DisplayFirmwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayFirmwareVersion_Uint64;
pub const IsOnDesktop_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_IsOnDesktop_Bool; pub const IsOnDesktop_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_IsOnDesktop_Bool;
pub const DisplayMCType_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayMCType_Int32; pub const DisplayMCType_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayMCType_Int32;
pub const DisplayMCOffset_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayMCOffset_Float; pub const DisplayMCOffset_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayMCOffset_Float;
pub const DisplayMCScale_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayMCScale_Float; pub const DisplayMCScale_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayMCScale_Float;
pub const EdidVendorID_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_EdidVendorID_Int32; pub const EdidVendorID_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_EdidVendorID_Int32;
pub const DisplayMCImageLeft_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayMCImageLeft_String; pub const DisplayMCImageLeft_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayMCImageLeft_String;
pub const DisplayMCImageRight_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayMCImageRight_String; pub const DisplayMCImageRight_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayMCImageRight_String;
pub const DisplayGCBlackClamp_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayGCBlackClamp_Float; pub const DisplayGCBlackClamp_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayGCBlackClamp_Float;
pub const EdidProductID_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_EdidProductID_Int32; pub const EdidProductID_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_EdidProductID_Int32;
pub const CameraToHeadTransform_Matrix34: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_CameraToHeadTransform_Matrix34; pub const CameraToHeadTransform_Matrix34: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_CameraToHeadTransform_Matrix34;
pub const DisplayGCType_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayGCType_Int32; pub const DisplayGCType_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayGCType_Int32;
pub const DisplayGCOffset_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayGCOffset_Float; pub const DisplayGCOffset_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayGCOffset_Float;
pub const DisplayGCScale_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayGCScale_Float; pub const DisplayGCScale_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayGCScale_Float;
pub const DisplayGCPrescale_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayGCPrescale_Float; pub const DisplayGCPrescale_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayGCPrescale_Float;
pub const DisplayGCImage_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayGCImage_String; pub const DisplayGCImage_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayGCImage_String;
pub const LensCenterLeftU_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_LensCenterLeftU_Float; pub const LensCenterLeftU_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_LensCenterLeftU_Float;
pub const LensCenterLeftV_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_LensCenterLeftV_Float; pub const LensCenterLeftV_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_LensCenterLeftV_Float;
pub const LensCenterRightU_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_LensCenterRightU_Float; pub const LensCenterRightU_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_LensCenterRightU_Float;
pub const LensCenterRightV_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_LensCenterRightV_Float; pub const LensCenterRightV_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_LensCenterRightV_Float;
pub const UserHeadToEyeDepthMeters_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_UserHeadToEyeDepthMeters_Float; pub const UserHeadToEyeDepthMeters_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_UserHeadToEyeDepthMeters_Float;
pub const CameraFirmwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_CameraFirmwareVersion_Uint64; pub const CameraFirmwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_CameraFirmwareVersion_Uint64;
pub const CameraFirmwareDescription_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_CameraFirmwareDescription_String; pub const CameraFirmwareDescription_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_CameraFirmwareDescription_String;
pub const DisplayFPGAVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayFPGAVersion_Uint64; pub const DisplayFPGAVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayFPGAVersion_Uint64;
pub const DisplayBootloaderVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayBootloaderVersion_Uint64; pub const DisplayBootloaderVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayBootloaderVersion_Uint64;
pub const DisplayHardwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayHardwareVersion_Uint64; pub const DisplayHardwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayHardwareVersion_Uint64;
pub const AudioFirmwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_AudioFirmwareVersion_Uint64; pub const AudioFirmwareVersion_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_AudioFirmwareVersion_Uint64;
pub const CameraCompatibilityMode_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_CameraCompatibilityMode_Int32; pub const CameraCompatibilityMode_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_CameraCompatibilityMode_Int32;
pub const ScreenshotHorizontalFieldOfViewDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ScreenshotHorizontalFieldOfViewDegrees_Float; pub const ScreenshotHorizontalFieldOfViewDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ScreenshotHorizontalFieldOfViewDegrees_Float;
pub const ScreenshotVerticalFieldOfViewDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ScreenshotVerticalFieldOfViewDegrees_Float; pub const ScreenshotVerticalFieldOfViewDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ScreenshotVerticalFieldOfViewDegrees_Float;
pub const DisplaySuppressed_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplaySuppressed_Bool; pub const DisplaySuppressed_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplaySuppressed_Bool;
pub const DisplayAllowNightMode_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayAllowNightMode_Bool; pub const DisplayAllowNightMode_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayAllowNightMode_Bool;
pub const DisplayMCImageWidth_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayMCImageWidth_Int32; pub const DisplayMCImageWidth_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayMCImageWidth_Int32;
pub const DisplayMCImageHeight_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayMCImageHeight_Int32; pub const DisplayMCImageHeight_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayMCImageHeight_Int32;
pub const DisplayMCImageNumChannels_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayMCImageNumChannels_Int32; pub const DisplayMCImageNumChannels_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayMCImageNumChannels_Int32;
pub const DisplayMCImageData_Binary: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayMCImageData_Binary; pub const DisplayMCImageData_Binary: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayMCImageData_Binary;
pub const SecondsFromPhotonsToVblank_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_SecondsFromPhotonsToVblank_Float; pub const SecondsFromPhotonsToVblank_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_SecondsFromPhotonsToVblank_Float;
pub const DriverDirectModeSendsVsyncEvents_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DriverDirectModeSendsVsyncEvents_Bool; pub const DriverDirectModeSendsVsyncEvents_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DriverDirectModeSendsVsyncEvents_Bool;
pub const DisplayDebugMode_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayDebugMode_Bool; pub const DisplayDebugMode_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayDebugMode_Bool;
pub const GraphicsAdapterLuid_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_GraphicsAdapterLuid_Uint64; pub const GraphicsAdapterLuid_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_GraphicsAdapterLuid_Uint64;
pub const AttachedDeviceId_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_AttachedDeviceId_String; pub const AttachedDeviceId_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_AttachedDeviceId_String;
pub const SupportedButtons_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_SupportedButtons_Uint64; pub const SupportedButtons_Uint64: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_SupportedButtons_Uint64;
pub const Axis0Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Axis0Type_Int32; pub const Axis0Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Axis0Type_Int32;
pub const Axis1Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Axis1Type_Int32; pub const Axis1Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Axis1Type_Int32;
pub const Axis2Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Axis2Type_Int32; pub const Axis2Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Axis2Type_Int32;
pub const Axis3Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Axis3Type_Int32; pub const Axis3Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Axis3Type_Int32;
pub const Axis4Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_Axis4Type_Int32; pub const Axis4Type_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_Axis4Type_Int32;
pub const ControllerRoleHint_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ControllerRoleHint_Int32; pub const ControllerRoleHint_Int32: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ControllerRoleHint_Int32;
pub const FieldOfViewLeftDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_FieldOfViewLeftDegrees_Float; pub const FieldOfViewLeftDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_FieldOfViewLeftDegrees_Float;
pub const FieldOfViewRightDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_FieldOfViewRightDegrees_Float; pub const FieldOfViewRightDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_FieldOfViewRightDegrees_Float;
pub const FieldOfViewTopDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_FieldOfViewTopDegrees_Float; pub const FieldOfViewTopDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_FieldOfViewTopDegrees_Float;
pub const FieldOfViewBottomDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_FieldOfViewBottomDegrees_Float; pub const FieldOfViewBottomDegrees_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_FieldOfViewBottomDegrees_Float;
pub const TrackingRangeMinimumMeters_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_TrackingRangeMinimumMeters_Float; pub const TrackingRangeMinimumMeters_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_TrackingRangeMinimumMeters_Float;
pub const TrackingRangeMaximumMeters_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_TrackingRangeMaximumMeters_Float; pub const TrackingRangeMaximumMeters_Float: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_TrackingRangeMaximumMeters_Float;
pub const ModeLabel_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_ModeLabel_String; pub const ModeLabel_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_ModeLabel_String;
pub const IconPathName_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_IconPathName_String; pub const IconPathName_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_IconPathName_String;
pub const NamedIconPathDeviceOff_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_NamedIconPathDeviceOff_String; pub const NamedIconPathDeviceOff_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_NamedIconPathDeviceOff_String;
pub const NamedIconPathDeviceSearching_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearching_String; pub const NamedIconPathDeviceSearching_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearching_String;
pub const NamedIconPathDeviceSearchingAlert_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearchingAlert_String; pub const NamedIconPathDeviceSearchingAlert_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearchingAlert_String;
pub const NamedIconPathDeviceReady_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_NamedIconPathDeviceReady_String; pub const NamedIconPathDeviceReady_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_NamedIconPathDeviceReady_String;
pub const NamedIconPathDeviceReadyAlert_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_NamedIconPathDeviceReadyAlert_String; pub const NamedIconPathDeviceReadyAlert_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_NamedIconPathDeviceReadyAlert_String;
pub const NamedIconPathDeviceNotReady_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_NamedIconPathDeviceNotReady_String; pub const NamedIconPathDeviceNotReady_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_NamedIconPathDeviceNotReady_String;
pub const NamedIconPathDeviceStandby_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_NamedIconPathDeviceStandby_String; pub const NamedIconPathDeviceStandby_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_NamedIconPathDeviceStandby_String;
pub const NamedIconPathDeviceAlertLow_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_NamedIconPathDeviceAlertLow_String; pub const NamedIconPathDeviceAlertLow_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_NamedIconPathDeviceAlertLow_String;
pub const DisplayHiddenArea_Binary_Start: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_Start; pub const DisplayHiddenArea_Binary_Start: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_Start;
pub const DisplayHiddenArea_Binary_End: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_End; pub const DisplayHiddenArea_Binary_End: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_End;
pub const UserConfigPath_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_UserConfigPath_String; pub const UserConfigPath_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_UserConfigPath_String;
pub const InstallPath_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_InstallPath_String; pub const InstallPath_String: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_InstallPath_String;
pub const HasDisplayComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_HasDisplayComponent_Bool; pub const HasDisplayComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_HasDisplayComponent_Bool;
pub const HasControllerComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_HasControllerComponent_Bool; pub const HasControllerComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_HasControllerComponent_Bool;
pub const HasCameraComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_HasCameraComponent_Bool; pub const HasCameraComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_HasCameraComponent_Bool;
pub const HasDriverDirectModeComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_HasDriverDirectModeComponent_Bool; pub const HasDriverDirectModeComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_HasDriverDirectModeComponent_Bool;
pub const HasVirtualDisplayComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_HasVirtualDisplayComponent_Bool; pub const HasVirtualDisplayComponent_Bool: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_HasVirtualDisplayComponent_Bool;
pub const VendorSpecific_Reserved_Start: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_Start; pub const VendorSpecific_Reserved_Start: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_Start;
pub const VendorSpecific_Reserved_End: TrackedDeviceProperty = sys::ETrackedDeviceProperty_ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_End; pub const VendorSpecific_Reserved_End: TrackedDeviceProperty = sys::ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_End;

View File

@ -47,19 +47,19 @@ pub struct Error(sys::EVRRenderModelError);
pub mod error { pub mod error {
use super::{sys, Error}; use super::{sys, Error};
pub const NONE: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_None); pub const NONE: Error = Error(sys::EVRRenderModelError_VRRenderModelError_None);
pub const LOADING: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_Loading); pub const LOADING: Error = Error(sys::EVRRenderModelError_VRRenderModelError_Loading);
pub const NOT_SUPPORTED: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_NotSupported); pub const NOT_SUPPORTED: Error = Error(sys::EVRRenderModelError_VRRenderModelError_NotSupported);
pub const INVALID_ARG: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_InvalidArg); pub const INVALID_ARG: Error = Error(sys::EVRRenderModelError_VRRenderModelError_InvalidArg);
pub const INVALID_MODEL: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_InvalidModel); pub const INVALID_MODEL: Error = Error(sys::EVRRenderModelError_VRRenderModelError_InvalidModel);
pub const NO_SHAPES: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_NoShapes); pub const NO_SHAPES: Error = Error(sys::EVRRenderModelError_VRRenderModelError_NoShapes);
pub const MULTIPLE_SHAPES: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_MultipleShapes); pub const MULTIPLE_SHAPES: Error = Error(sys::EVRRenderModelError_VRRenderModelError_MultipleShapes);
pub const TOO_MANY_VERTICES: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_TooManyVertices); pub const TOO_MANY_VERTICES: Error = Error(sys::EVRRenderModelError_VRRenderModelError_TooManyVertices);
pub const MULTIPLE_TEXTURES: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_MultipleTextures); pub const MULTIPLE_TEXTURES: Error = Error(sys::EVRRenderModelError_VRRenderModelError_MultipleTextures);
pub const BUFFER_TOO_SMALL: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_BufferTooSmall); pub const BUFFER_TOO_SMALL: Error = Error(sys::EVRRenderModelError_VRRenderModelError_BufferTooSmall);
pub const NOT_ENOUGH_NORMALS: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_NotEnoughNormals); pub const NOT_ENOUGH_NORMALS: Error = Error(sys::EVRRenderModelError_VRRenderModelError_NotEnoughNormals);
pub const NOT_ENOUGH_TEX_COORDS: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_NotEnoughTexCoords); pub const NOT_ENOUGH_TEX_COORDS: Error = Error(sys::EVRRenderModelError_VRRenderModelError_NotEnoughTexCoords);
pub const INVALID_TEXTURE: Error = Error(sys::EVRRenderModelError_EVRRenderModelError_VRRenderModelError_InvalidTexture); pub const INVALID_TEXTURE: Error = Error(sys::EVRRenderModelError_VRRenderModelError_InvalidTexture);
} }
impl fmt::Debug for Error { impl fmt::Debug for Error {

View File

@ -345,116 +345,116 @@ impl Event {
#[allow(deprecated)] #[allow(deprecated)]
match ty { match ty {
sys::EVREventType_EVREventType_VREvent_TrackedDeviceActivated => TrackedDeviceActivated, sys::EVREventType_VREvent_TrackedDeviceActivated => TrackedDeviceActivated,
sys::EVREventType_EVREventType_VREvent_TrackedDeviceDeactivated => TrackedDeviceDeactivated, sys::EVREventType_VREvent_TrackedDeviceDeactivated => TrackedDeviceDeactivated,
sys::EVREventType_EVREventType_VREvent_TrackedDeviceUpdated => TrackedDeviceUpdated, sys::EVREventType_VREvent_TrackedDeviceUpdated => TrackedDeviceUpdated,
sys::EVREventType_EVREventType_VREvent_TrackedDeviceUserInteractionStarted => TrackedDeviceUserInteractionStarted, sys::EVREventType_VREvent_TrackedDeviceUserInteractionStarted => TrackedDeviceUserInteractionStarted,
sys::EVREventType_EVREventType_VREvent_TrackedDeviceUserInteractionEnded => TrackedDeviceUserInteractionEnded, sys::EVREventType_VREvent_TrackedDeviceUserInteractionEnded => TrackedDeviceUserInteractionEnded,
sys::EVREventType_EVREventType_VREvent_IpdChanged => IpdChanged, sys::EVREventType_VREvent_IpdChanged => IpdChanged,
sys::EVREventType_EVREventType_VREvent_EnterStandbyMode => EnterStandbyMode, sys::EVREventType_VREvent_EnterStandbyMode => EnterStandbyMode,
sys::EVREventType_EVREventType_VREvent_LeaveStandbyMode => LeaveStandbyMode, sys::EVREventType_VREvent_LeaveStandbyMode => LeaveStandbyMode,
sys::EVREventType_EVREventType_VREvent_TrackedDeviceRoleChanged => TrackedDeviceRoleChanged, sys::EVREventType_VREvent_TrackedDeviceRoleChanged => TrackedDeviceRoleChanged,
sys::EVREventType_EVREventType_VREvent_WatchdogWakeUpRequested => WatchdogWakeUpRequested, sys::EVREventType_VREvent_WatchdogWakeUpRequested => WatchdogWakeUpRequested,
sys::EVREventType_EVREventType_VREvent_LensDistortionChanged => LensDistortionChanged, sys::EVREventType_VREvent_LensDistortionChanged => LensDistortionChanged,
sys::EVREventType_EVREventType_VREvent_PropertyChanged => PropertyChanged(get(data)), sys::EVREventType_VREvent_PropertyChanged => PropertyChanged(get(data)),
sys::EVREventType_EVREventType_VREvent_ButtonPress => ButtonPress(get(data)), sys::EVREventType_VREvent_ButtonPress => ButtonPress(get(data)),
sys::EVREventType_EVREventType_VREvent_ButtonUnpress => ButtonUnpress(get(data)), sys::EVREventType_VREvent_ButtonUnpress => ButtonUnpress(get(data)),
sys::EVREventType_EVREventType_VREvent_ButtonTouch => ButtonTouch(get(data)), sys::EVREventType_VREvent_ButtonTouch => ButtonTouch(get(data)),
sys::EVREventType_EVREventType_VREvent_ButtonUntouch => ButtonUntouch(get(data)), sys::EVREventType_VREvent_ButtonUntouch => ButtonUntouch(get(data)),
sys::EVREventType_EVREventType_VREvent_MouseMove => MouseMove(get(data)), sys::EVREventType_VREvent_MouseMove => MouseMove(get(data)),
sys::EVREventType_EVREventType_VREvent_MouseButtonDown => MouseButtonDown(get(data)), sys::EVREventType_VREvent_MouseButtonDown => MouseButtonDown(get(data)),
sys::EVREventType_EVREventType_VREvent_MouseButtonUp => MouseButtonUp(get(data)), sys::EVREventType_VREvent_MouseButtonUp => MouseButtonUp(get(data)),
sys::EVREventType_EVREventType_VREvent_FocusEnter => FocusEnter(get(data)), sys::EVREventType_VREvent_FocusEnter => FocusEnter(get(data)),
sys::EVREventType_EVREventType_VREvent_FocusLeave => FocusLeave(get(data)), sys::EVREventType_VREvent_FocusLeave => FocusLeave(get(data)),
sys::EVREventType_EVREventType_VREvent_Scroll => Scroll(get(data)), sys::EVREventType_VREvent_Scroll => Scroll(get(data)),
sys::EVREventType_EVREventType_VREvent_TouchPadMove => TouchPadMove(get(data)), sys::EVREventType_VREvent_TouchPadMove => TouchPadMove(get(data)),
sys::EVREventType_EVREventType_VREvent_OverlayFocusChanged => OverlayFocusChanged(get(data)), sys::EVREventType_VREvent_OverlayFocusChanged => OverlayFocusChanged(get(data)),
sys::EVREventType_EVREventType_VREvent_InputFocusCaptured => InputFocusCaptured(get(data)), sys::EVREventType_VREvent_InputFocusCaptured => InputFocusCaptured(get(data)),
sys::EVREventType_EVREventType_VREvent_InputFocusReleased => InputFocusReleased(get(data)), sys::EVREventType_VREvent_InputFocusReleased => InputFocusReleased(get(data)),
sys::EVREventType_EVREventType_VREvent_SceneFocusLost => SceneFocusLost(get(data)), sys::EVREventType_VREvent_SceneFocusLost => SceneFocusLost(get(data)),
sys::EVREventType_EVREventType_VREvent_SceneFocusGained => SceneFocusGained(get(data)), sys::EVREventType_VREvent_SceneFocusGained => SceneFocusGained(get(data)),
sys::EVREventType_EVREventType_VREvent_SceneApplicationChanged => SceneApplicationChanged(get(data)), sys::EVREventType_VREvent_SceneApplicationChanged => SceneApplicationChanged(get(data)),
sys::EVREventType_EVREventType_VREvent_SceneFocusChanged => SceneFocusChanged(get(data)), sys::EVREventType_VREvent_SceneFocusChanged => SceneFocusChanged(get(data)),
sys::EVREventType_EVREventType_VREvent_InputFocusChanged => InputFocusChanged(get(data)), sys::EVREventType_VREvent_InputFocusChanged => InputFocusChanged(get(data)),
sys::EVREventType_EVREventType_VREvent_SceneApplicationSecondaryRenderingStarted => SceneApplicationSecondaryRenderingStarted(get(data)), sys::EVREventType_VREvent_SceneApplicationSecondaryRenderingStarted => SceneApplicationSecondaryRenderingStarted(get(data)),
sys::EVREventType_EVREventType_VREvent_HideRenderModels => HideRenderModels, sys::EVREventType_VREvent_HideRenderModels => HideRenderModels,
sys::EVREventType_EVREventType_VREvent_ShowRenderModels => ShowRenderModels, sys::EVREventType_VREvent_ShowRenderModels => ShowRenderModels,
sys::EVREventType_EVREventType_VREvent_OverlayShown => OverlayShown, sys::EVREventType_VREvent_OverlayShown => OverlayShown,
sys::EVREventType_EVREventType_VREvent_OverlayHidden => OverlayHidden, sys::EVREventType_VREvent_OverlayHidden => OverlayHidden,
sys::EVREventType_EVREventType_VREvent_DashboardActivated => DashboardActivated, sys::EVREventType_VREvent_DashboardActivated => DashboardActivated,
sys::EVREventType_EVREventType_VREvent_DashboardDeactivated => DashboardDeactivated, sys::EVREventType_VREvent_DashboardDeactivated => DashboardDeactivated,
sys::EVREventType_EVREventType_VREvent_DashboardThumbSelected => DashboardThumbSelected, sys::EVREventType_VREvent_DashboardThumbSelected => DashboardThumbSelected,
sys::EVREventType_EVREventType_VREvent_DashboardRequested => DashboardRequested, sys::EVREventType_VREvent_DashboardRequested => DashboardRequested,
sys::EVREventType_EVREventType_VREvent_ResetDashboard => ResetDashboard, sys::EVREventType_VREvent_ResetDashboard => ResetDashboard,
sys::EVREventType_EVREventType_VREvent_RenderToast => RenderToast, sys::EVREventType_VREvent_RenderToast => RenderToast,
sys::EVREventType_EVREventType_VREvent_ImageLoaded => ImageLoaded, sys::EVREventType_VREvent_ImageLoaded => ImageLoaded,
sys::EVREventType_EVREventType_VREvent_ShowKeyboard => ShowKeyboard, sys::EVREventType_VREvent_ShowKeyboard => ShowKeyboard,
sys::EVREventType_EVREventType_VREvent_HideKeyboard => HideKeyboard, sys::EVREventType_VREvent_HideKeyboard => HideKeyboard,
sys::EVREventType_EVREventType_VREvent_OverlayGamepadFocusGained => OverlayGamepadFocusGained, sys::EVREventType_VREvent_OverlayGamepadFocusGained => OverlayGamepadFocusGained,
sys::EVREventType_EVREventType_VREvent_OverlayGamepadFocusLost => OverlayGamepadFocusLost, sys::EVREventType_VREvent_OverlayGamepadFocusLost => OverlayGamepadFocusLost,
sys::EVREventType_EVREventType_VREvent_OverlaySharedTextureChanged => OverlaySharedTextureChanged, sys::EVREventType_VREvent_OverlaySharedTextureChanged => OverlaySharedTextureChanged,
sys::EVREventType_EVREventType_VREvent_DashboardGuideButtonDown => DashboardGuideButtonDown, sys::EVREventType_VREvent_DashboardGuideButtonDown => DashboardGuideButtonDown,
sys::EVREventType_EVREventType_VREvent_DashboardGuideButtonUp => DashboardGuideButtonUp, sys::EVREventType_VREvent_DashboardGuideButtonUp => DashboardGuideButtonUp,
sys::EVREventType_EVREventType_VREvent_ScreenshotTriggered => ScreenshotTriggered, sys::EVREventType_VREvent_ScreenshotTriggered => ScreenshotTriggered,
sys::EVREventType_EVREventType_VREvent_ImageFailed => ImageFailed, sys::EVREventType_VREvent_ImageFailed => ImageFailed,
sys::EVREventType_EVREventType_VREvent_DashboardOverlayCreated => DashboardOverlayCreated, sys::EVREventType_VREvent_DashboardOverlayCreated => DashboardOverlayCreated,
sys::EVREventType_EVREventType_VREvent_RequestScreenshot => RequestScreenshot, sys::EVREventType_VREvent_RequestScreenshot => RequestScreenshot,
sys::EVREventType_EVREventType_VREvent_ScreenshotTaken => ScreenshotTaken, sys::EVREventType_VREvent_ScreenshotTaken => ScreenshotTaken,
sys::EVREventType_EVREventType_VREvent_ScreenshotFailed => ScreenshotFailed, sys::EVREventType_VREvent_ScreenshotFailed => ScreenshotFailed,
sys::EVREventType_EVREventType_VREvent_SubmitScreenshotToDashboard => SubmitScreenshotToDashboard, sys::EVREventType_VREvent_SubmitScreenshotToDashboard => SubmitScreenshotToDashboard,
sys::EVREventType_EVREventType_VREvent_ScreenshotProgressToDashboard => ScreenshotProgressToDashboard, sys::EVREventType_VREvent_ScreenshotProgressToDashboard => ScreenshotProgressToDashboard,
sys::EVREventType_EVREventType_VREvent_PrimaryDashboardDeviceChanged => PrimaryDashboardDeviceChanged, sys::EVREventType_VREvent_PrimaryDashboardDeviceChanged => PrimaryDashboardDeviceChanged,
sys::EVREventType_EVREventType_VREvent_Notification_Shown => Notification_Shown, sys::EVREventType_VREvent_Notification_Shown => Notification_Shown,
sys::EVREventType_EVREventType_VREvent_Notification_Hidden => Notification_Hidden, sys::EVREventType_VREvent_Notification_Hidden => Notification_Hidden,
sys::EVREventType_EVREventType_VREvent_Notification_BeginInteraction => Notification_BeginInteraction, sys::EVREventType_VREvent_Notification_BeginInteraction => Notification_BeginInteraction,
sys::EVREventType_EVREventType_VREvent_Notification_Destroyed => Notification_Destroyed, sys::EVREventType_VREvent_Notification_Destroyed => Notification_Destroyed,
sys::EVREventType_EVREventType_VREvent_Quit => Quit(get(data)), sys::EVREventType_VREvent_Quit => Quit(get(data)),
sys::EVREventType_EVREventType_VREvent_ProcessQuit => ProcessQuit(get(data)), sys::EVREventType_VREvent_ProcessQuit => ProcessQuit(get(data)),
sys::EVREventType_EVREventType_VREvent_QuitAborted_UserPrompt => QuitAborted_UserPrompt(get(data)), sys::EVREventType_VREvent_QuitAborted_UserPrompt => QuitAborted_UserPrompt(get(data)),
sys::EVREventType_EVREventType_VREvent_QuitAcknowledged => QuitAcknowledged(get(data)), sys::EVREventType_VREvent_QuitAcknowledged => QuitAcknowledged(get(data)),
sys::EVREventType_EVREventType_VREvent_DriverRequestedQuit => DriverRequestedQuit, sys::EVREventType_VREvent_DriverRequestedQuit => DriverRequestedQuit,
sys::EVREventType_EVREventType_VREvent_ChaperoneDataHasChanged => ChaperoneDataHasChanged, sys::EVREventType_VREvent_ChaperoneDataHasChanged => ChaperoneDataHasChanged,
sys::EVREventType_EVREventType_VREvent_ChaperoneUniverseHasChanged => ChaperoneUniverseHasChanged, sys::EVREventType_VREvent_ChaperoneUniverseHasChanged => ChaperoneUniverseHasChanged,
sys::EVREventType_EVREventType_VREvent_ChaperoneTempDataHasChanged => ChaperoneTempDataHasChanged, sys::EVREventType_VREvent_ChaperoneTempDataHasChanged => ChaperoneTempDataHasChanged,
sys::EVREventType_EVREventType_VREvent_ChaperoneSettingsHaveChanged => ChaperoneSettingsHaveChanged, sys::EVREventType_VREvent_ChaperoneSettingsHaveChanged => ChaperoneSettingsHaveChanged,
sys::EVREventType_EVREventType_VREvent_SeatedZeroPoseReset => SeatedZeroPoseReset, sys::EVREventType_VREvent_SeatedZeroPoseReset => SeatedZeroPoseReset,
sys::EVREventType_EVREventType_VREvent_AudioSettingsHaveChanged => AudioSettingsHaveChanged, sys::EVREventType_VREvent_AudioSettingsHaveChanged => AudioSettingsHaveChanged,
sys::EVREventType_EVREventType_VREvent_BackgroundSettingHasChanged => BackgroundSettingHasChanged, sys::EVREventType_VREvent_BackgroundSettingHasChanged => BackgroundSettingHasChanged,
sys::EVREventType_EVREventType_VREvent_CameraSettingsHaveChanged => CameraSettingsHaveChanged, sys::EVREventType_VREvent_CameraSettingsHaveChanged => CameraSettingsHaveChanged,
sys::EVREventType_EVREventType_VREvent_ReprojectionSettingHasChanged => ReprojectionSettingHasChanged, sys::EVREventType_VREvent_ReprojectionSettingHasChanged => ReprojectionSettingHasChanged,
sys::EVREventType_EVREventType_VREvent_ModelSkinSettingsHaveChanged => ModelSkinSettingsHaveChanged, sys::EVREventType_VREvent_ModelSkinSettingsHaveChanged => ModelSkinSettingsHaveChanged,
sys::EVREventType_EVREventType_VREvent_EnvironmentSettingsHaveChanged => EnvironmentSettingsHaveChanged, sys::EVREventType_VREvent_EnvironmentSettingsHaveChanged => EnvironmentSettingsHaveChanged,
sys::EVREventType_EVREventType_VREvent_PowerSettingsHaveChanged => PowerSettingsHaveChanged, sys::EVREventType_VREvent_PowerSettingsHaveChanged => PowerSettingsHaveChanged,
sys::EVREventType_EVREventType_VREvent_StatusUpdate => StatusUpdate, sys::EVREventType_VREvent_StatusUpdate => StatusUpdate,
sys::EVREventType_EVREventType_VREvent_MCImageUpdated => MCImageUpdated, sys::EVREventType_VREvent_MCImageUpdated => MCImageUpdated,
sys::EVREventType_EVREventType_VREvent_FirmwareUpdateStarted => FirmwareUpdateStarted, sys::EVREventType_VREvent_FirmwareUpdateStarted => FirmwareUpdateStarted,
sys::EVREventType_EVREventType_VREvent_FirmwareUpdateFinished => FirmwareUpdateFinished, sys::EVREventType_VREvent_FirmwareUpdateFinished => FirmwareUpdateFinished,
sys::EVREventType_EVREventType_VREvent_KeyboardClosed => KeyboardClosed, sys::EVREventType_VREvent_KeyboardClosed => KeyboardClosed,
sys::EVREventType_EVREventType_VREvent_KeyboardCharInput => KeyboardCharInput(get(data)), sys::EVREventType_VREvent_KeyboardCharInput => KeyboardCharInput(get(data)),
sys::EVREventType_EVREventType_VREvent_KeyboardDone => KeyboardDone, sys::EVREventType_VREvent_KeyboardDone => KeyboardDone,
sys::EVREventType_EVREventType_VREvent_ApplicationTransitionStarted => ApplicationTransitionStarted, sys::EVREventType_VREvent_ApplicationTransitionStarted => ApplicationTransitionStarted,
sys::EVREventType_EVREventType_VREvent_ApplicationTransitionAborted => ApplicationTransitionAborted, sys::EVREventType_VREvent_ApplicationTransitionAborted => ApplicationTransitionAborted,
sys::EVREventType_EVREventType_VREvent_ApplicationTransitionNewAppStarted => ApplicationTransitionNewAppStarted, sys::EVREventType_VREvent_ApplicationTransitionNewAppStarted => ApplicationTransitionNewAppStarted,
sys::EVREventType_EVREventType_VREvent_ApplicationListUpdated => ApplicationListUpdated, sys::EVREventType_VREvent_ApplicationListUpdated => ApplicationListUpdated,
sys::EVREventType_EVREventType_VREvent_ApplicationMimeTypeLoad => ApplicationMimeTypeLoad, sys::EVREventType_VREvent_ApplicationMimeTypeLoad => ApplicationMimeTypeLoad,
sys::EVREventType_EVREventType_VREvent_ApplicationTransitionNewAppLaunchComplete => ApplicationTransitionNewAppLaunchComplete, sys::EVREventType_VREvent_ApplicationTransitionNewAppLaunchComplete => ApplicationTransitionNewAppLaunchComplete,
sys::EVREventType_EVREventType_VREvent_ProcessConnected => ProcessConnected, sys::EVREventType_VREvent_ProcessConnected => ProcessConnected,
sys::EVREventType_EVREventType_VREvent_ProcessDisconnected => ProcessDisconnected, sys::EVREventType_VREvent_ProcessDisconnected => ProcessDisconnected,
sys::EVREventType_EVREventType_VREvent_Compositor_MirrorWindowShown => Compositor_MirrorWindowShown, sys::EVREventType_VREvent_Compositor_MirrorWindowShown => Compositor_MirrorWindowShown,
sys::EVREventType_EVREventType_VREvent_Compositor_MirrorWindowHidden => Compositor_MirrorWindowHidden, sys::EVREventType_VREvent_Compositor_MirrorWindowHidden => Compositor_MirrorWindowHidden,
sys::EVREventType_EVREventType_VREvent_Compositor_ChaperoneBoundsShown => Compositor_ChaperoneBoundsShown, sys::EVREventType_VREvent_Compositor_ChaperoneBoundsShown => Compositor_ChaperoneBoundsShown,
sys::EVREventType_EVREventType_VREvent_Compositor_ChaperoneBoundsHidden => Compositor_ChaperoneBoundsHidden, sys::EVREventType_VREvent_Compositor_ChaperoneBoundsHidden => Compositor_ChaperoneBoundsHidden,
sys::EVREventType_EVREventType_VREvent_TrackedCamera_StartVideoStream => TrackedCamera_StartVideoStream, sys::EVREventType_VREvent_TrackedCamera_StartVideoStream => TrackedCamera_StartVideoStream,
sys::EVREventType_EVREventType_VREvent_TrackedCamera_StopVideoStream => TrackedCamera_StopVideoStream, sys::EVREventType_VREvent_TrackedCamera_StopVideoStream => TrackedCamera_StopVideoStream,
sys::EVREventType_EVREventType_VREvent_TrackedCamera_PauseVideoStream => TrackedCamera_PauseVideoStream, sys::EVREventType_VREvent_TrackedCamera_PauseVideoStream => TrackedCamera_PauseVideoStream,
sys::EVREventType_EVREventType_VREvent_TrackedCamera_ResumeVideoStream => TrackedCamera_ResumeVideoStream, sys::EVREventType_VREvent_TrackedCamera_ResumeVideoStream => TrackedCamera_ResumeVideoStream,
sys::EVREventType_EVREventType_VREvent_TrackedCamera_EditingSurface => TrackedCamera_EditingSurface, sys::EVREventType_VREvent_TrackedCamera_EditingSurface => TrackedCamera_EditingSurface,
sys::EVREventType_EVREventType_VREvent_PerformanceTest_EnableCapture => PerformanceTest_EnableCapture, sys::EVREventType_VREvent_PerformanceTest_EnableCapture => PerformanceTest_EnableCapture,
sys::EVREventType_EVREventType_VREvent_PerformanceTest_DisableCapture => PerformanceTest_DisableCapture, sys::EVREventType_VREvent_PerformanceTest_DisableCapture => PerformanceTest_DisableCapture,
sys::EVREventType_EVREventType_VREvent_PerformanceTest_FidelityLevel => PerformanceTest_FidelityLevel, sys::EVREventType_VREvent_PerformanceTest_FidelityLevel => PerformanceTest_FidelityLevel,
sys::EVREventType_EVREventType_VREvent_MessageOverlay_Closed => MessageOverlay_Closed, sys::EVREventType_VREvent_MessageOverlay_Closed => MessageOverlay_Closed,
x if x >= sys::EVREventType_EVREventType_VREvent_VendorSpecific_Reserved_Start x if x >= sys::EVREventType_VREvent_VendorSpecific_Reserved_Start
&& x <= sys::EVREventType_EVREventType_VREvent_VendorSpecific_Reserved_End => VendorSpecific(x), && x <= sys::EVREventType_VREvent_VendorSpecific_Reserved_End => VendorSpecific(x),
x => Unknown(x), x => Unknown(x),
} }
} }

View File

@ -90,12 +90,12 @@ impl<'a> System<'a> {
pub fn tracked_device_class(&self, index: TrackedDeviceIndex) -> TrackedDeviceClass { pub fn tracked_device_class(&self, index: TrackedDeviceIndex) -> TrackedDeviceClass {
use self::TrackedDeviceClass::*; use self::TrackedDeviceClass::*;
match unsafe { self.0.GetTrackedDeviceClass.unwrap()(index) } { match unsafe { self.0.GetTrackedDeviceClass.unwrap()(index) } {
sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_Invalid => Invalid, sys::ETrackedDeviceClass_TrackedDeviceClass_Invalid => Invalid,
sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_HMD => HMD, sys::ETrackedDeviceClass_TrackedDeviceClass_HMD => HMD,
sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_Controller => Controller, sys::ETrackedDeviceClass_TrackedDeviceClass_Controller => Controller,
sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_GenericTracker => GenericTracker, sys::ETrackedDeviceClass_TrackedDeviceClass_GenericTracker => GenericTracker,
sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_TrackingReference => TrackingReference, sys::ETrackedDeviceClass_TrackedDeviceClass_TrackingReference => TrackingReference,
sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_DisplayRedirect => DisplayRedirect, sys::ETrackedDeviceClass_TrackedDeviceClass_DisplayRedirect => DisplayRedirect,
_ => Invalid, _ => Invalid,
} }
} }
@ -148,8 +148,8 @@ impl<'a> System<'a> {
pub fn get_controller_role_for_tracked_device_index(&self, i: TrackedDeviceIndex) -> Option<TrackedControllerRole> { pub fn get_controller_role_for_tracked_device_index(&self, i: TrackedDeviceIndex) -> Option<TrackedControllerRole> {
let x = unsafe { self.0.GetControllerRoleForTrackedDeviceIndex.unwrap()(i) }; let x = unsafe { self.0.GetControllerRoleForTrackedDeviceIndex.unwrap()(i) };
match x { match x {
sys::ETrackedControllerRole_ETrackedControllerRole_TrackedControllerRole_LeftHand => Some(TrackedControllerRole::LeftHand), sys::ETrackedControllerRole_TrackedControllerRole_LeftHand => Some(TrackedControllerRole::LeftHand),
sys::ETrackedControllerRole_ETrackedControllerRole_TrackedControllerRole_RightHand => Some(TrackedControllerRole::RightHand), sys::ETrackedControllerRole_TrackedControllerRole_RightHand => Some(TrackedControllerRole::RightHand),
_ => None, _ => None,
} }
} }
@ -157,7 +157,7 @@ impl<'a> System<'a> {
pub fn vulkan_output_device(&self) -> Option<*mut VkPhysicalDevice_T> { pub fn vulkan_output_device(&self) -> Option<*mut VkPhysicalDevice_T> {
unsafe { unsafe {
let mut device = mem::uninitialized(); let mut device = mem::uninitialized();
self.0.GetOutputDevice.unwrap()(&mut device, sys::ETextureType_ETextureType_TextureType_Vulkan); self.0.GetOutputDevice.unwrap()(&mut device, sys::ETextureType_TextureType_Vulkan);
if device == 0 { None } else { Some(device as usize as *mut _) } if device == 0 { None } else { Some(device as usize as *mut _) }
} }
} }
@ -242,18 +242,18 @@ pub struct TrackedPropertyError(sys::TrackedPropertyError);
pub mod tracked_property_error { pub mod tracked_property_error {
use super::{sys, TrackedPropertyError}; use super::{sys, TrackedPropertyError};
pub const SUCCESS: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_Success); pub const SUCCESS: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_Success);
pub const WRONG_DATA_TYPE: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_WrongDataType); pub const WRONG_DATA_TYPE: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_WrongDataType);
pub const WRONG_DEVICE_CLASS: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_WrongDeviceClass); pub const WRONG_DEVICE_CLASS: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_WrongDeviceClass);
pub const BUFFER_TOO_SMALL: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_BufferTooSmall); pub const BUFFER_TOO_SMALL: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_BufferTooSmall);
pub const UNKNOWN_PROPERTY: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_UnknownProperty); pub const UNKNOWN_PROPERTY: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_UnknownProperty);
pub const INVALID_DEVICE: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_InvalidDevice); pub const INVALID_DEVICE: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_InvalidDevice);
pub const COULD_NOT_CONTACT_SERVER: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_CouldNotContactServer); pub const COULD_NOT_CONTACT_SERVER: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_CouldNotContactServer);
pub const VALUE_NOT_PROVIDED_BY_DEVICE: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_ValueNotProvidedByDevice); pub const VALUE_NOT_PROVIDED_BY_DEVICE: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_ValueNotProvidedByDevice);
pub const STRING_EXCEEDS_MAXIMUM_LENGTH: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_StringExceedsMaximumLength); pub const STRING_EXCEEDS_MAXIMUM_LENGTH: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_StringExceedsMaximumLength);
pub const NOT_YET_AVAILABLE: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_NotYetAvailable); pub const NOT_YET_AVAILABLE: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_NotYetAvailable);
pub const PERMISSION_DENIED: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_PermissionDenied); pub const PERMISSION_DENIED: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_PermissionDenied);
pub const INVALID_OPERATION: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_ETrackedPropertyError_TrackedProp_InvalidOperation); pub const INVALID_OPERATION: TrackedPropertyError = TrackedPropertyError(sys::ETrackedPropertyError_TrackedProp_InvalidOperation);
} }
impl fmt::Debug for TrackedPropertyError { impl fmt::Debug for TrackedPropertyError {

View File

@ -2,9 +2,9 @@ use openvr_sys as sys;
#[derive(Debug, Copy, Clone, Eq, PartialEq)] #[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum TrackingUniverseOrigin { pub enum TrackingUniverseOrigin {
Seated = sys::ETrackingUniverseOrigin_ETrackingUniverseOrigin_TrackingUniverseSeated as isize, Seated = sys::ETrackingUniverseOrigin_TrackingUniverseSeated as isize,
Standing = sys::ETrackingUniverseOrigin_ETrackingUniverseOrigin_TrackingUniverseStanding as isize, Standing = sys::ETrackingUniverseOrigin_TrackingUniverseStanding as isize,
RawAndUncalibrated = sys::ETrackingUniverseOrigin_ETrackingUniverseOrigin_TrackingUniverseRawAndUncalibrated as isize, RawAndUncalibrated = sys::ETrackingUniverseOrigin_TrackingUniverseRawAndUncalibrated as isize,
} }
#[repr(C)] #[repr(C)]
@ -18,11 +18,11 @@ impl TrackedDevicePose {
pub fn tracking_result(&self) -> TrackingResult { pub fn tracking_result(&self) -> TrackingResult {
use self::TrackingResult::*; use self::TrackingResult::*;
match self.0.eTrackingResult { match self.0.eTrackingResult {
sys::ETrackingResult_ETrackingResult_TrackingResult_Uninitialized => Uninitialized, sys::ETrackingResult_TrackingResult_Uninitialized => Uninitialized,
sys::ETrackingResult_ETrackingResult_TrackingResult_Calibrating_InProgress => CalibratingInProgress, sys::ETrackingResult_TrackingResult_Calibrating_InProgress => CalibratingInProgress,
sys::ETrackingResult_ETrackingResult_TrackingResult_Calibrating_OutOfRange => CalibratingOutOfRange, sys::ETrackingResult_TrackingResult_Calibrating_OutOfRange => CalibratingOutOfRange,
sys::ETrackingResult_ETrackingResult_TrackingResult_Running_OK => OK, sys::ETrackingResult_TrackingResult_Running_OK => OK,
sys::ETrackingResult_ETrackingResult_TrackingResult_Running_OutOfRange => RunningOutOfRange, sys::ETrackingResult_TrackingResult_Running_OutOfRange => RunningOutOfRange,
_ => panic!("unrecognized tracking result") _ => panic!("unrecognized tracking result")
} }
} }
@ -32,21 +32,21 @@ impl TrackedDevicePose {
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub enum TrackingResult { pub enum TrackingResult {
Uninitialized = sys::ETrackingResult_ETrackingResult_TrackingResult_Uninitialized as isize, Uninitialized = sys::ETrackingResult_TrackingResult_Uninitialized as isize,
CalibratingInProgress = sys::ETrackingResult_ETrackingResult_TrackingResult_Calibrating_InProgress as isize, CalibratingInProgress = sys::ETrackingResult_TrackingResult_Calibrating_InProgress as isize,
CalibratingOutOfRange = sys::ETrackingResult_ETrackingResult_TrackingResult_Calibrating_OutOfRange as isize, CalibratingOutOfRange = sys::ETrackingResult_TrackingResult_Calibrating_OutOfRange as isize,
OK = sys::ETrackingResult_ETrackingResult_TrackingResult_Running_OK as isize, OK = sys::ETrackingResult_TrackingResult_Running_OK as isize,
RunningOutOfRange = sys::ETrackingResult_ETrackingResult_TrackingResult_Running_OutOfRange as isize, RunningOutOfRange = sys::ETrackingResult_TrackingResult_Running_OutOfRange as isize,
} }
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub enum TrackedDeviceClass { pub enum TrackedDeviceClass {
Invalid = sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_Invalid as isize, Invalid = sys::ETrackedDeviceClass_TrackedDeviceClass_Invalid as isize,
HMD = sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_HMD as isize, HMD = sys::ETrackedDeviceClass_TrackedDeviceClass_HMD as isize,
Controller = sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_Controller as isize, Controller = sys::ETrackedDeviceClass_TrackedDeviceClass_Controller as isize,
GenericTracker = sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_GenericTracker as isize, GenericTracker = sys::ETrackedDeviceClass_TrackedDeviceClass_GenericTracker as isize,
TrackingReference = sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_TrackingReference as isize, TrackingReference = sys::ETrackedDeviceClass_TrackedDeviceClass_TrackingReference as isize,
DisplayRedirect = sys::ETrackedDeviceClass_ETrackedDeviceClass_TrackedDeviceClass_DisplayRedirect as isize, DisplayRedirect = sys::ETrackedDeviceClass_TrackedDeviceClass_DisplayRedirect as isize,
} }
pub type TrackedDeviceIndex = sys::TrackedDeviceIndex_t; pub type TrackedDeviceIndex = sys::TrackedDeviceIndex_t;
@ -61,8 +61,8 @@ pub type TrackedDeviceProperty = sys::ETrackedDeviceProperty;
#[derive(Debug, Copy, Clone)] #[derive(Debug, Copy, Clone)]
pub enum TrackedControllerRole { pub enum TrackedControllerRole {
LeftHand = sys::ETrackedControllerRole_ETrackedControllerRole_TrackedControllerRole_LeftHand as isize, LeftHand = sys::ETrackedControllerRole_TrackedControllerRole_LeftHand as isize,
RightHand = sys::ETrackedControllerRole_ETrackedControllerRole_TrackedControllerRole_RightHand as isize, RightHand = sys::ETrackedControllerRole_TrackedControllerRole_RightHand as isize,
} }
pub const MAX_TRACKED_DEVICE_COUNT: usize = sys::k_unMaxTrackedDeviceCount as usize; pub const MAX_TRACKED_DEVICE_COUNT: usize = sys::k_unMaxTrackedDeviceCount as usize;