1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-24 22:46:03 +00:00

made it compile with RUG on emscripten (at least it should -- it does not work for me because of an emscripten bug apparently)

This commit is contained in:
Zeno Rogue
2018-02-03 14:31:17 +01:00
parent 84b7f73920
commit ad172724e8
10 changed files with 59 additions and 38 deletions

View File

@@ -299,9 +299,13 @@ void gdpush(int t);
typedef int SDL_Event;
#endif
#if ISWEB
inline Uint8 *SDL_GetKeyState(void *v) { static Uint8 tab[1024]; return tab; }
#endif
// #if ISWEB
// inline Uint8 *SDL_GetKeyState(void *v) { static Uint8 tab[1024]; return tab; }
// #endif
extern "C" {
Uint8 *SDL_GetKeyState(void*);
}
#ifndef CAP_GLEW
#define CAP_GLEW (CAP_GL && !ISMOBILE && !ISMAC && !ISLINUX)