dw_gui is fully functional now (except dw::Menu)

This commit is contained in:
korenkonder
2023-06-27 03:49:44 +03:00
parent ea2f0ab36e
commit 02c87cde3c
14 changed files with 633 additions and 331 deletions
+6 -1
View File
@@ -30,6 +30,8 @@ extern HWND window_handle;
extern ImGuiContext* imgui_context;
extern lock_cs imgui_context_lock;
extern bool disable_input_state_update;
namespace Input {
struct Key {
int32_t key;
@@ -199,7 +201,10 @@ namespace Input {
input_rotate_y = 0.0;
input_roll = 0.0;
if (!window_handle || window_handle != GetForegroundWindow())
if (IsKeyTapped(GLFW_KEY_F3))
disable_input_state_update ^= true;
if (!window_handle || window_handle != GetForegroundWindow() || !disable_input_state_update)
return;
double_t freq = render_timer->get_freq();