mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2024-11-10 06:52:10 +00:00
Merge branch 'beef_master' into questzdoom
This commit is contained in:
commit
f5d006eb2e
6 changed files with 83 additions and 25 deletions
|
@ -72,6 +72,30 @@ bool ready_teleport;
|
||||||
bool trigger_teleport;
|
bool trigger_teleport;
|
||||||
bool cinemamode;
|
bool cinemamode;
|
||||||
|
|
||||||
|
extern ovrInputStateTrackedRemote leftTrackedRemoteState_old;
|
||||||
|
extern ovrInputStateTrackedRemote leftTrackedRemoteState_new;
|
||||||
|
extern ovrTracking leftRemoteTracking_new;
|
||||||
|
|
||||||
|
extern ovrInputStateTrackedRemote rightTrackedRemoteState_old;
|
||||||
|
extern ovrInputStateTrackedRemote rightTrackedRemoteState_new;
|
||||||
|
extern ovrTracking rightRemoteTracking_new;
|
||||||
|
|
||||||
|
extern ovrInputStateGamepad footTrackedRemoteState_old;
|
||||||
|
extern ovrInputStateGamepad footTrackedRemoteState_new;
|
||||||
|
|
||||||
|
|
||||||
|
extern ovrDeviceID controllerIDs[2];
|
||||||
|
|
||||||
|
extern float remote_movementSideways;
|
||||||
|
extern float remote_movementForward;
|
||||||
|
extern float remote_movementUp;
|
||||||
|
extern float positional_movementSideways;
|
||||||
|
extern float positional_movementForward;
|
||||||
|
extern float snapTurn;
|
||||||
|
|
||||||
|
extern float cinemamodeYaw;
|
||||||
|
extern float cinemamodePitch;
|
||||||
|
|
||||||
#if !defined( EGL_OPENGL_ES3_BIT_KHR )
|
#if !defined( EGL_OPENGL_ES3_BIT_KHR )
|
||||||
#define EGL_OPENGL_ES3_BIT_KHR 0x0040
|
#define EGL_OPENGL_ES3_BIT_KHR 0x0040
|
||||||
#endif
|
#endif
|
||||||
|
@ -1049,6 +1073,8 @@ static void ovrApp_HandleVrModeChanges( ovrApp * app )
|
||||||
vrapi_SetPerfThread( app->Ovr, VRAPI_PERF_THREAD_TYPE_RENDERER, app->RenderThreadTid );
|
vrapi_SetPerfThread( app->Ovr, VRAPI_PERF_THREAD_TYPE_RENDERER, app->RenderThreadTid );
|
||||||
|
|
||||||
ALOGV( " vrapi_SetPerfThread( RENDERER, %d )", app->RenderThreadTid );
|
ALOGV( " vrapi_SetPerfThread( RENDERER, %d )", app->RenderThreadTid );
|
||||||
|
|
||||||
|
vrapi_SetExtraLatencyMode(app->Ovr, VRAPI_EXTRA_LATENCY_MODE_ON);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1557,6 +1583,12 @@ void QzDoom_FrameSetup()
|
||||||
{
|
{
|
||||||
//Use floor based tracking space
|
//Use floor based tracking space
|
||||||
vrapi_SetTrackingSpace(gAppState.Ovr, VRAPI_TRACKING_SPACE_LOCAL_FLOOR);
|
vrapi_SetTrackingSpace(gAppState.Ovr, VRAPI_TRACKING_SPACE_LOCAL_FLOOR);
|
||||||
|
|
||||||
|
//Ensure extra latency mode is enabled always
|
||||||
|
vrapi_SetExtraLatencyMode(gAppState.Ovr, VRAPI_EXTRA_LATENCY_MODE_ON);
|
||||||
|
|
||||||
|
//Ensure we are running at configure "power"
|
||||||
|
vrapi_SetClockLevels( gAppState.Ovr, gAppState.CpuLevel, gAppState.GpuLevel );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QzDoom_processHaptics() {//Handle haptics
|
void QzDoom_processHaptics() {//Handle haptics
|
||||||
|
|
|
@ -4,29 +4,7 @@
|
||||||
|
|
||||||
#include "VrCommon.h"
|
#include "VrCommon.h"
|
||||||
|
|
||||||
ovrInputStateTrackedRemote leftTrackedRemoteState_old;
|
|
||||||
ovrInputStateTrackedRemote leftTrackedRemoteState_new;
|
|
||||||
ovrTracking leftRemoteTracking_new;
|
|
||||||
|
|
||||||
ovrInputStateTrackedRemote rightTrackedRemoteState_old;
|
|
||||||
ovrInputStateTrackedRemote rightTrackedRemoteState_new;
|
|
||||||
ovrTracking rightRemoteTracking_new;
|
|
||||||
|
|
||||||
ovrInputStateGamepad footTrackedRemoteState_old;
|
|
||||||
ovrInputStateGamepad footTrackedRemoteState_new;
|
|
||||||
|
|
||||||
|
|
||||||
ovrDeviceID controllerIDs[2];
|
|
||||||
|
|
||||||
float remote_movementSideways;
|
|
||||||
float remote_movementForward;
|
|
||||||
float remote_movementUp;
|
|
||||||
float positional_movementSideways;
|
|
||||||
float positional_movementForward;
|
|
||||||
float snapTurn;
|
|
||||||
|
|
||||||
float cinemamodeYaw;
|
|
||||||
float cinemamodePitch;
|
|
||||||
|
|
||||||
void acquireTrackedRemotesData(const ovrMobile *Ovr, double displayTime);
|
void acquireTrackedRemotesData(const ovrMobile *Ovr, double displayTime);
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,30 @@ Authors : Simon Brown
|
||||||
|
|
||||||
#include "VrInput.h"
|
#include "VrInput.h"
|
||||||
|
|
||||||
|
ovrInputStateTrackedRemote leftTrackedRemoteState_old;
|
||||||
|
ovrInputStateTrackedRemote leftTrackedRemoteState_new;
|
||||||
|
ovrTracking leftRemoteTracking_new;
|
||||||
|
|
||||||
|
ovrInputStateTrackedRemote rightTrackedRemoteState_old;
|
||||||
|
ovrInputStateTrackedRemote rightTrackedRemoteState_new;
|
||||||
|
ovrTracking rightRemoteTracking_new;
|
||||||
|
|
||||||
|
ovrInputStateGamepad footTrackedRemoteState_old;
|
||||||
|
ovrInputStateGamepad footTrackedRemoteState_new;
|
||||||
|
|
||||||
|
|
||||||
|
ovrDeviceID controllerIDs[2];
|
||||||
|
|
||||||
|
float remote_movementSideways;
|
||||||
|
float remote_movementForward;
|
||||||
|
float remote_movementUp;
|
||||||
|
float positional_movementSideways;
|
||||||
|
float positional_movementForward;
|
||||||
|
float snapTurn;
|
||||||
|
|
||||||
|
float cinemamodeYaw;
|
||||||
|
float cinemamodePitch;
|
||||||
|
|
||||||
void Joy_GenerateButtonEvents(int oldbuttons, int newbuttons, int numbuttons, int base);
|
void Joy_GenerateButtonEvents(int oldbuttons, int newbuttons, int numbuttons, int base);
|
||||||
|
|
||||||
void handleTrackedControllerButton(ovrInputStateTrackedRemote * trackedRemoteState, ovrInputStateTrackedRemote * prevTrackedRemoteState, uint32_t button, int key)
|
void handleTrackedControllerButton(ovrInputStateTrackedRemote * trackedRemoteState, ovrInputStateTrackedRemote * prevTrackedRemoteState, uint32_t button, int key)
|
||||||
|
|
|
@ -18,6 +18,30 @@ Authors : Simon Brown
|
||||||
|
|
||||||
#include "doomkeys.h"
|
#include "doomkeys.h"
|
||||||
|
|
||||||
|
extern ovrInputStateTrackedRemote leftTrackedRemoteState_old;
|
||||||
|
extern ovrInputStateTrackedRemote leftTrackedRemoteState_new;
|
||||||
|
extern ovrTracking leftRemoteTracking_new;
|
||||||
|
|
||||||
|
extern ovrInputStateTrackedRemote rightTrackedRemoteState_old;
|
||||||
|
extern ovrInputStateTrackedRemote rightTrackedRemoteState_new;
|
||||||
|
extern ovrTracking rightRemoteTracking_new;
|
||||||
|
|
||||||
|
extern ovrInputStateGamepad footTrackedRemoteState_old;
|
||||||
|
extern ovrInputStateGamepad footTrackedRemoteState_new;
|
||||||
|
|
||||||
|
|
||||||
|
extern ovrDeviceID controllerIDs[2];
|
||||||
|
|
||||||
|
extern float remote_movementSideways;
|
||||||
|
extern float remote_movementForward;
|
||||||
|
extern float remote_movementUp;
|
||||||
|
extern float positional_movementSideways;
|
||||||
|
extern float positional_movementForward;
|
||||||
|
extern float snapTurn;
|
||||||
|
|
||||||
|
extern float cinemamodeYaw;
|
||||||
|
extern float cinemamodePitch;
|
||||||
|
|
||||||
int getGameState();
|
int getGameState();
|
||||||
int getMenuState();
|
int getMenuState();
|
||||||
void Joy_GenerateButtonEvents(int oldbuttons, int newbuttons, int numbuttons, int base);
|
void Joy_GenerateButtonEvents(int oldbuttons, int newbuttons, int numbuttons, int base);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit c6b023d3e32fac0986c2b65076c761db75696e7c
|
Subproject commit 7c588113669f0ea72e9782ca93c98eeb76471bfa
|
|
@ -4,6 +4,6 @@
|
||||||
# Location of the SDK. This is only used by Gradle.
|
# Location of the SDK. This is only used by Gradle.
|
||||||
# For customization when using a Version Control System, please read the
|
# For customization when using a Version Control System, please read the
|
||||||
# header note.
|
# header note.
|
||||||
#Thu Dec 12 20:21:11 GMT 2019
|
#Wed Feb 02 12:33:02 GMT 2022
|
||||||
ndk.dir=C\:\\Users\\Simon\\AppData\\Local\\Android\\Sdk\\ndk-bundle
|
ndk.dir=C\:\\Users\\simon\\AppData\\Local\\Android\\Sdk\\ndk\\20.0.5594570
|
||||||
sdk.dir=C\:\\Users\\Simon\\AppData\\Local\\Android\\Sdk
|
sdk.dir=C\:\\Users\\Simon\\AppData\\Local\\Android\\Sdk
|
||||||
|
|
Loading…
Reference in a new issue