trim out some dead/commented code

This commit is contained in:
Ben Campbell 2017-10-23 12:32:08 +13:00
parent e218345e1f
commit dcc3d970a6
2 changed files with 2 additions and 17 deletions

View File

@ -4,9 +4,6 @@
#include "math/vec3.h"
#include "math/quat.h"
#include "util.h"
//#include "graphics/texture.h"
//#include "lib/glfw.h"
//#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@ -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);
}
}

View File

@ -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();