Locked cursor gui interaction fix again
This commit is contained in:
@@ -94,6 +94,8 @@ void GUI::act(float delta) {
|
||||
for (auto key : Events::pressedKeys) {
|
||||
focus->keyPressed(key);
|
||||
}
|
||||
|
||||
if (!Events::_cursor_locked) {
|
||||
if (Events::clicked(mousecode::BUTTON_1)) {
|
||||
int mx = Events::x;
|
||||
int my = Events::y;
|
||||
@@ -108,6 +110,7 @@ void GUI::act(float delta) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (focus && !focus->isfocused()) {
|
||||
focus = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user