Skip to content

Commit

Permalink
Remove unneeded HMD config
Browse files Browse the repository at this point in the history
  • Loading branch information
oneup03 committed Jul 13, 2024
1 parent 8e77a5d commit 9ee1529
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 40 deletions.
12 changes: 0 additions & 12 deletions vrto3d/src/hmd_device_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,6 @@ vr::EVRInitError MockControllerDeviceDriver::Activate( uint32_t unObjectId )
vrp->SetBoolProperty( container, vr::Prop_ContainsProximitySensor_Bool, false);
vrp->SetBoolProperty( container, vr::Prop_DeviceCanPowerOff_Bool, false);

// Now let's set up our inputs
// This tells the UI what to show the user for bindings for this controller,
// As well as what default bindings should be for legacy apps.
// Note, we can use the wildcard {<driver_name>} to match the root folder location
// of our driver.
vrp->SetStringProperty( container, vr::Prop_InputProfilePath_String, "{vrto3d}/input/vrto3d_profile.json" );

// Let's set up handles for all of our components.
// Even though these are also defined in our input profile,
// We need to get handles to them to update the inputs.
vr::VRDriverInput()->CreateBooleanComponent( container, "/input/system/touch", &my_input_handles_[ MyComponent_system_touch ] );
vr::VRDriverInput()->CreateBooleanComponent( container, "/input/system/click", &my_input_handles_[ MyComponent_system_click ] );
// set proximity senser to always on, always head present
vr::VRInputComponentHandle_t prox;
vr::VRDriverInput()->CreateBooleanComponent(container, "/proximity", &prox);
Expand Down
8 changes: 0 additions & 8 deletions vrto3d/src/hmd_device_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@
#include <thread>
#include <vector>

enum MyComponent
{
MyComponent_system_touch,
MyComponent_system_click,

MyComponent_MAX
};

struct StereoDisplayDriverConfiguration
{
Expand Down Expand Up @@ -130,7 +123,6 @@ class MockControllerDeviceDriver : public vr::ITrackedDeviceServerDriver
std::string stereo_model_number_;
std::string stereo_serial_number_;

std::array< vr::VRInputComponentHandle_t, MyComponent_MAX > my_input_handles_{};
std::atomic< bool > is_active_;
std::atomic< uint32_t > device_index_;

Expand Down
16 changes: 0 additions & 16 deletions vrto3d/vrto3d/resources/input/vrto3d_profile.json

This file was deleted.

8 changes: 4 additions & 4 deletions vrto3d/vrto3d/resources/settings/default.vrsettings
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
"model_number": "Stereo3D-1"
},
"vrto3d_display": {
"window_width": 3840,
"window_width": 1920,
"window_height": 1080,
"hmd_height": 1.0,
"aspect_ratio": 1.77778,
"fov": 90.0,
"depth": 0.5,
"convergence": 0.1,
"tab_enable": false,
"half_enable": false,
"half_enable": true,
"reverse_enable": false,
"hdr_enable": false,
"depth_gauge": false,
"display_latency": 0.011,
"display_frequency": 60.0,
"pitch_enable": true,
"yaw_enable": true,
"pitch_enable": false,
"yaw_enable": false,
"ctrl_deadzone": 0.05,
"ctrl_sensitivity": 1.0,
"num_user_settings": 3,
Expand Down

0 comments on commit 9ee1529

Please sign in to comment.