1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
mod binding; mod constants; mod display; mod library; mod gamepad; mod service; use {VRService, VRServiceCreator}; pub struct OpenVRServiceCreator; impl OpenVRServiceCreator { pub fn new() -> Box<VRServiceCreator> { Box::new(OpenVRServiceCreator) } } impl VRServiceCreator for OpenVRServiceCreator { fn new_service(&self) -> Box<VRService> { Box::new(service::OpenVRService::new()) } }