mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
Merge branch 'main' into lua_audio
This commit is contained in:
commit
978555d9f7
1 changed files with 5 additions and 1 deletions
|
|
@ -112,7 +112,11 @@ void GUI::act(float delta) {
|
||||||
|
|
||||||
if (!Events::_cursor_locked) {
|
if (!Events::_cursor_locked) {
|
||||||
if (Events::clicked(mousecode::BUTTON_1)) {
|
if (Events::clicked(mousecode::BUTTON_1)) {
|
||||||
focus->mouseMove(this, Events::cursor.x, Events::cursor.y);
|
if (Events::jclicked(mousecode::BUTTON_1) ||
|
||||||
|
Events::delta.x || Events::delta.y)
|
||||||
|
{
|
||||||
|
focus->mouseMove(this, Events::cursor.x, Events::cursor.y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue