mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 12:12:25 +01:00
- feedble attempt to help people with mouse problems
This commit is contained in:
parent
622c707c2e
commit
bb1034e1e2
@ -778,7 +778,14 @@ void sleep(int millis) {
|
||||
}
|
||||
|
||||
void showCursor(bool b) {
|
||||
int x,y;
|
||||
if(b) {
|
||||
SDL_GetMouseState( &x, &y );
|
||||
}
|
||||
SDL_ShowCursor(b ? SDL_ENABLE : SDL_DISABLE);
|
||||
if(b) {
|
||||
SDL_WarpMouse(x,y);
|
||||
}
|
||||
}
|
||||
|
||||
bool isKeyDown(int virtualKey) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user