- changed show cursor code since it was not easily allowing you to cursour out of the SDL window
This commit is contained in:
parent
f720c43462
commit
6560ba73dc
|
@ -780,11 +780,12 @@ void sleep(int millis) {
|
|||
void showCursor(bool b) {
|
||||
int x,y;
|
||||
if(b) {
|
||||
SDL_GetMouseState( &x, &y );
|
||||
//SDL_GetMouseState( &x, &y );
|
||||
}
|
||||
SDL_ShowCursor(b ? SDL_ENABLE : SDL_DISABLE);
|
||||
if(b) {
|
||||
SDL_WarpMouse(x,y);
|
||||
SDL_WM_GrabInput(SDL_GRAB_OFF);
|
||||
//SDL_WarpMouse(x,y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user