mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-23 13:23:14 +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:
committed by
Timur Gagiev
parent
d10a2b693e
commit
9bb6d91ba7
@@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
extern void osToggleVR(bool enable);
|
extern void osToggleVR(bool enable);
|
||||||
#elif __SDL2__
|
#elif __SDL2__
|
||||||
|
extern void osToggleVR(bool enable);
|
||||||
#define _GAPI_GL 1
|
#define _GAPI_GL 1
|
||||||
#ifdef SDL2_GLES
|
#ifdef SDL2_GLES
|
||||||
#define _GAPI_GLES 1
|
#define _GAPI_GLES 1
|
||||||
|
@@ -103,6 +103,10 @@ void osJoyVibrate(int index, float L, float R) {
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void osToggleVR(bool enable) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
bool isKeyPressed (SDL_Scancode scancode) {
|
bool isKeyPressed (SDL_Scancode scancode) {
|
||||||
const Uint8 *state = SDL_GetKeyboardState(NULL);
|
const Uint8 *state = SDL_GetKeyboardState(NULL);
|
||||||
if (state[scancode]) {
|
if (state[scancode]) {
|
||||||
|
Reference in New Issue
Block a user