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:
10
init.cpp
10
init.cpp
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user