You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I implemented a camera system for our renderer but there is an issue. If user uses alt+tab while right-clicking, application stops getting inputs. Here's the implementation: Osman-Fatih-Cakir/DX12Renderer@7fc52a2 . How can we fix this?
The text was updated successfully, but these errors were encountered:
I was able to reproduce it on my end in Win32 with DirectX 12 with ImGui.
EDIT: So it turned out that IO state was just stuck after alt-tabbing while right clicking, so one way to mitigate this is to clear your IO state, with ImGui this would be:
if (e.type == xwin::EventType::Focus)
{
xwin::FocusData fd = e.data.focus;
if (!fd.focused)
{
// Clear IO
io.ClearInputKeys();
}
}
Try clearing your IO state when losing focus in your application, so that would be your isRightClicked variable in AppWindow.cpp.
It didn't work out for me. The problem seems to be event queue isn't clearing its elements. Event queue element count keeps increasing even though i clear them using pop().
Hi, I implemented a camera system for our renderer but there is an issue. If user uses alt+tab while right-clicking, application stops getting inputs. Here's the implementation: Osman-Fatih-Cakir/DX12Renderer@7fc52a2 . How can we fix this?
The text was updated successfully, but these errors were encountered: