1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00

Use correct origin type for fake headset;

This commit is contained in:
bjorn 2017-11-20 19:33:51 -08:00
parent c1b95c2bd6
commit 27b24e4de3

View file

@ -260,10 +260,11 @@ static void fakeDestroy() {
} }
static void fakePoll() { static void fakePoll() {
//
} }
static bool fakeIsPresent() { static bool fakeIsPresent() {
return true; return true;
} }
static HeadsetType fakeGetType() { static HeadsetType fakeGetType() {
@ -271,20 +272,20 @@ static HeadsetType fakeGetType() {
} }
static HeadsetOrigin fakeGetOriginType() { static HeadsetOrigin fakeGetOriginType() {
//return ORIGIN_HEAD; // seated return ORIGIN_HEAD;
return ORIGIN_FLOOR; // standing
} }
static bool fakeIsMirrored() { static bool fakeIsMirrored() {
return false; return true;
} }
static void fakeSetMirrored(bool mirror) { static void fakeSetMirrored(bool mirror) {
//
} }
static void fakeGetDisplayDimensions(int* width, int* height) { static void fakeGetDisplayDimensions(int* width, int* height) {
GLFWwindow* window = lovrGraphicsGetWindow(); GLFWwindow* window = lovrGraphicsGetWindow();
if(window) { if (window) {
glfwGetWindowSize(window,width,height); glfwGetWindowSize(window,width,height);
} }
} }