SDL now only scrolls if mouse is within freecraft window
This commit is contained in:
parent
807bb7ef22
commit
68bbdcf0b2
1 changed files with 2 additions and 0 deletions
|
@ -494,6 +494,8 @@ local void SdlDoEvent(const EventCallback* callbacks, const SDL_Event * event)
|
|||
case SDL_ACTIVEEVENT:
|
||||
DebugLevel3("\tFocus changed\n");
|
||||
InMainWindow = !InMainWindow;
|
||||
if (!InMainWindow)
|
||||
HandleMouseExit();
|
||||
if (!event->active.state) {
|
||||
InputMouseExit(callbacks,SDL_GetTicks());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue