mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-22 16:25:36 +00:00
added steamworks-info
This commit is contained in:
1
configure
vendored
1
configure
vendored
@ -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")]
|
||||||
|
@ -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());
|
|
||||||
}
|
}
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user