- feedble attempt to help people with mouse problems

This commit is contained in:
Mark Vejvoda
2010-06-22 13:38:30 +00:00
parent 622c707c2e
commit bb1034e1e2

View File

@@ -778,7 +778,14 @@ void sleep(int millis) {
} }
void showCursor(bool b) { void showCursor(bool b) {
int x,y;
if(b) {
SDL_GetMouseState( &x, &y );
}
SDL_ShowCursor(b ? SDL_ENABLE : SDL_DISABLE); SDL_ShowCursor(b ? SDL_ENABLE : SDL_DISABLE);
if(b) {
SDL_WarpMouse(x,y);
}
} }
bool isKeyDown(int virtualKey) { bool isKeyDown(int virtualKey) {