X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2F3dengfx%2Fsrc%2Ffxwt%2Ffxwt_sdl.cpp;fp=src%2F3dengfx%2Fsrc%2Ffxwt%2Ffxwt_sdl.cpp;h=d3e11126e0a34f03ee386dd16acb62a577ab8cbc;hb=5eb4b6d8243150765ce93c8b2a9e2215e5c13543;hp=e0cd95e7fc46e0d03b3a15ca2ccce04cb2b8f48d;hpb=38630d1ae93aa0a015d23ed79a4d7d83fab8918a;p=summerhack diff --git a/src/3dengfx/src/fxwt/fxwt_sdl.cpp b/src/3dengfx/src/fxwt/fxwt_sdl.cpp index e0cd95e..d3e1112 100644 --- a/src/3dengfx/src/fxwt/fxwt_sdl.cpp +++ b/src/3dengfx/src/fxwt/fxwt_sdl.cpp @@ -59,6 +59,11 @@ void fxwt::set_window_title(const char *title) { SDL_WM_SetCaption(title, 0); } +void fxwt::show_cursor(bool show) +{ + SDL_ShowCursor(show ? 1 : 0); +} + void fxwt::swap_buffers() { SDL_GL_SwapBuffers(); #if defined(_POSIX_PRIORITY_SCHEDULING) @@ -70,7 +75,7 @@ void fxwt::swap_buffers() { int fxwt::main_loop() { set_verbosity(3); - + SDL_EnableKeyRepeat(300, 20); while(1) {