From dcc3d970a61ff366081ff14791c54f3ba109eec9 Mon Sep 17 00:00:00 2001 From: Ben Campbell Date: Mon, 23 Oct 2017 12:32:08 +1300 Subject: [PATCH] trim out some dead/commented code --- src/headset/fake.c | 16 ++-------------- src/headset/openvr.c | 3 --- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/headset/fake.c b/src/headset/fake.c index 288ddf36..2efc3777 100644 --- a/src/headset/fake.c +++ b/src/headset/fake.c @@ -4,9 +4,6 @@ #include "math/vec3.h" #include "math/quat.h" #include "util.h" -//#include "graphics/texture.h" -//#include "lib/glfw.h" -//#include #include #include #include @@ -18,10 +15,6 @@ typedef struct { int isInitialized; -// int isRendering; -// int isMirrored; - -// unsigned int headsetIndex; HeadsetType type; vec_controller_t controllers; @@ -30,9 +23,6 @@ typedef struct { float clipFar; float FOV; -// uint32_t renderWidth; -// uint32_t renderHeight; - float vel[3]; float pos[3]; @@ -48,7 +38,7 @@ typedef struct { // keep track of currently hooked window, if any GLFWwindow* hookedWindow; - int mouselook; // + int mouselook; double prevCursorX; double prevCursorY; @@ -91,9 +81,7 @@ static void cursor_enter_callback( GLFWwindow *window, int entered) { static void window_focus_callback(GLFWwindow* window, int focused) { - if (focused) { - //enableMouselook(window); - } else { + if (!focused) { disableMouselook(window); } } diff --git a/src/headset/openvr.c b/src/headset/openvr.c index 5b9e5305..70597deb 100644 --- a/src/headset/openvr.c +++ b/src/headset/openvr.c @@ -13,12 +13,9 @@ // From openvr_capi.h extern intptr_t VR_InitInternal(EVRInitError *peError, EVRApplicationType eType); -//extern void VR_ShutdownInternal(); extern bool VR_IsHmdPresent(); extern intptr_t VR_GetGenericInterface(const char* pchInterfaceVersion, EVRInitError* peError); extern bool VR_IsRuntimeInstalled(); -//extern const char* VR_GetVRInitErrorAsSymbol(EVRInitError error); -//extern const char* VR_GetVRInitErrorAsEnglishDescription(EVRInitError error); static void openvrDestroy(); static void openvrPoll();