mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-23 16:49:31 +00:00
updated to latest rustc
This commit is contained in:
@ -366,7 +366,7 @@ impl Drop for Hmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Hmd {
|
impl Hmd {
|
||||||
pub fn get_last_error(&self) -> Result<(), ~str> {
|
pub fn get_last_error(&self) -> Result<(), String> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let ptr = ll::ovrHmd_GetLastError(self.ptr);
|
let ptr = ll::ovrHmd_GetLastError(self.ptr);
|
||||||
if ptr.is_null() {
|
if ptr.is_null() {
|
||||||
@ -823,7 +823,7 @@ impl SensorState {
|
|||||||
pub struct SensorDescription {
|
pub struct SensorDescription {
|
||||||
pub vendor_id: i16,
|
pub vendor_id: i16,
|
||||||
pub product_id: i16,
|
pub product_id: i16,
|
||||||
pub serial_number: ~str,
|
pub serial_number: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SensorDescription {
|
impl SensorDescription {
|
||||||
@ -846,7 +846,7 @@ impl EyeType {
|
|||||||
match c {
|
match c {
|
||||||
ll::Eye_Left => EyeLeft,
|
ll::Eye_Left => EyeLeft,
|
||||||
ll::Eye_Right => EyeRight,
|
ll::Eye_Right => EyeRight,
|
||||||
_ => fail!("Invalid eye type {:?}", c)
|
_ => fail!("Invalid eye type {}", c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -901,8 +901,8 @@ pub struct HmdDescriptionEye {
|
|||||||
|
|
||||||
pub struct HmdDescription {
|
pub struct HmdDescription {
|
||||||
pub hmd_type: HmdType,
|
pub hmd_type: HmdType,
|
||||||
pub product_name: ~str,
|
pub product_name: String,
|
||||||
pub manufacture: ~str,
|
pub manufacture: String,
|
||||||
pub hmd_capabilities: HmdCapabilities,
|
pub hmd_capabilities: HmdCapabilities,
|
||||||
pub sensor_capabilities: SensorCapabilities,
|
pub sensor_capabilities: SensorCapabilities,
|
||||||
pub distortion_capabilities: DistortionCapabilities,
|
pub distortion_capabilities: DistortionCapabilities,
|
||||||
@ -910,7 +910,7 @@ pub struct HmdDescription {
|
|||||||
pub window_position: ll::Vector2i,
|
pub window_position: ll::Vector2i,
|
||||||
pub eye_fovs: PerEye<HmdDescriptionEye>,
|
pub eye_fovs: PerEye<HmdDescriptionEye>,
|
||||||
pub eye_render_order: [EyeType, ..2],
|
pub eye_render_order: [EyeType, ..2],
|
||||||
pub display_device_name: ~str,
|
pub display_device_name: String,
|
||||||
pub display_id: c_int
|
pub display_id: c_int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user