mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: players interpolation & add hud.set_allow_pause(...)
This commit is contained in:
parent
036e13a2ca
commit
2fa71b3bf0
25 changed files with 232 additions and 41 deletions
|
|
@ -166,7 +166,7 @@ void GUI::actFocused() {
|
|||
focus->keyPressed(key);
|
||||
}
|
||||
|
||||
if (!Events::_cursor_locked) {
|
||||
if (!Events::isCursorLocked()) {
|
||||
if (Events::clicked(mousecode::BUTTON_1) &&
|
||||
(Events::jclicked(mousecode::BUTTON_1) || Events::delta.x || Events::delta.y))
|
||||
{
|
||||
|
|
@ -189,7 +189,7 @@ void GUI::act(float delta, const Viewport& vp) {
|
|||
auto prevfocus = focus;
|
||||
|
||||
updateTooltip(delta);
|
||||
if (!Events::_cursor_locked) {
|
||||
if (!Events::isCursorLocked()) {
|
||||
actMouse(delta);
|
||||
} else {
|
||||
if (hover) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue