1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-22 21:03:19 +02:00

Fix SDL2 build (#197)

* small rework on the SDL2 audio code

* fix SDL2 build because of missing osToggleVR() implementation
This commit is contained in:
Manuel Alfayate Corchete
2019-07-27 19:08:11 +02:00
committed by Timur Gagiev
parent d10a2b693e
commit 9bb6d91ba7
2 changed files with 5 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
extern void osToggleVR(bool enable);
#elif __SDL2__
extern void osToggleVR(bool enable);
#define _GAPI_GL 1
#ifdef SDL2_GLES
#define _GAPI_GLES 1

View File

@@ -103,6 +103,10 @@ void osJoyVibrate(int index, float L, float R) {
// TODO
}
void osToggleVR(bool enable) {
// TODO
}
bool isKeyPressed (SDL_Scancode scancode) {
const Uint8 *state = SDL_GetKeyboardState(NULL);
if (state[scancode]) {