mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 05:13:59 +02:00
- feedble attempt to help people with mouse problems
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user