added steamworks-info

This commit is contained in:
Colin Sherratt
2014-03-19 00:50:42 -04:00
parent 15c662d9f6
commit a2d71998bc
3 changed files with 3 additions and 3 deletions

1
configure vendored
View File

@ -173,6 +173,7 @@ modules = [Bin("oculus-info", ["oculus-vr"]),
Lib("oculus-vr", ["cgmath", "libovr_wrapper.a"]), Lib("oculus-vr", ["cgmath", "libovr_wrapper.a"]),
LibMakefile("libovr_wrapper.a", "src/oculus-vr/", "src/oculus-vr/libovr_wrapper.a", ["libovr.a"]), LibMakefile("libovr_wrapper.a", "src/oculus-vr/", "src/oculus-vr/libovr_wrapper.a", ["libovr.a"]),
LibMakefile("libovr.a", "thirdparty/OculusSDK/", "thirdparty/OculusSDK/LibOVR/Lib/Linux/Release/x86_64/libovr.a"), LibMakefile("libovr.a", "thirdparty/OculusSDK/", "thirdparty/OculusSDK/LibOVR/Lib/Linux/Release/x86_64/libovr.a"),
Bin("steamworks-info", ["steamworks-vr"], other_flags="-L thirdparty/Steamworks/redistributable_bin/linux64/"),
Lib("steamworks-vr", ["cgmath", "libsteamvr_wrapper.a"]), Lib("steamworks-vr", ["cgmath", "libsteamvr_wrapper.a"]),
LibMakefile("libsteamvr_wrapper.a", "src/steamworks-vr/", "src/steamworks-vr/libsteamvr_wrapper.a"), LibMakefile("libsteamvr_wrapper.a", "src/steamworks-vr/", "src/steamworks-vr/libsteamvr_wrapper.a"),
Lib("cgmath")] Lib("cgmath")]

View File

@ -1,5 +1,6 @@
#[crate_id = "steamworks-info#0.1"];
extern crate vr = "steam-vr-rs"; extern crate vr = "steamworks-vr";
fn main() fn main()
{ {
@ -19,5 +20,4 @@ fn main()
println!("{:?}", device.get_eye_output_viewport(vr::EyeRight)); println!("{:?}", device.get_eye_output_viewport(vr::EyeRight));
println!("{:?}", device.will_drift_in_yaw()); println!("{:?}", device.will_drift_in_yaw());
println!("{:?}", device.get_driver_id()); println!("{:?}", device.get_driver_id());
println!("{:?}", device.get_display_id());
} }

View File

@ -500,7 +500,6 @@ impl Hmd
} }
} }
pub fn get_display_id(&self) -> ~str pub fn get_display_id(&self) -> ~str
{ {
let mut buf = std::vec::from_elem(128, 0i8); let mut buf = std::vec::from_elem(128, 0i8);