mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
uinode mouseMove fix
This commit is contained in:
parent
3e929cd97c
commit
3210f34701
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