|
@@ -352,7 +352,7 @@ private:
|
|
|
|
|
|
struct GUI {
|
|
struct GUI {
|
|
bool forced_mouse_focus = false; //used for menu buttons
|
|
bool forced_mouse_focus = false; //used for menu buttons
|
|
- bool mouse_in_viewport = true;
|
|
|
|
|
|
+ bool mouse_in_viewport = false;
|
|
bool key_event_accepted = false;
|
|
bool key_event_accepted = false;
|
|
HashMap<int, ObjectID> touch_focus;
|
|
HashMap<int, ObjectID> touch_focus;
|
|
Control *mouse_focus = nullptr;
|
|
Control *mouse_focus = nullptr;
|