From 5ec3cd0c9dda5da55a46ad2d0f3797e8293f67f5 Mon Sep 17 00:00:00 2001 From: panxinmiao Date: Fri, 22 Nov 2024 15:48:13 +0800 Subject: [PATCH] update imgui --- pyproject.toml | 2 +- wgpu/utils/imgui/imgui_renderer.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6e8a9345..1be8dc0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ dependencies = ["cffi>=1.15.0", "rubicon-objc>=0.4.1; sys_platform == 'darwin'"] # For users jupyter = ["jupyter_rfb>=0.4.2"] glfw = ["glfw>=1.9"] -imgui = ["imgui-bundle>=1.2.1"] +imgui = ["imgui-bundle>=1.6.0"] # For devs / ci build = ["build", "hatchling", "requests", "twine"] codegen = ["pytest", "numpy", "ruff"] diff --git a/wgpu/utils/imgui/imgui_renderer.py b/wgpu/utils/imgui/imgui_renderer.py index 36513ff7..2332b50a 100644 --- a/wgpu/utils/imgui/imgui_renderer.py +++ b/wgpu/utils/imgui/imgui_renderer.py @@ -44,10 +44,10 @@ class ImguiRenderer: } KEY_MAP_MOD = { - "Shift": imgui.Key.im_gui_mod_shift, - "Control": imgui.Key.im_gui_mod_ctrl, - "Alt": imgui.Key.im_gui_mod_alt, - "Meta": imgui.Key.im_gui_mod_super, + "Shift": imgui.Key.mod_shift, + "Control": imgui.Key.mod_ctrl, + "Alt": imgui.Key.mod_alt, + "Meta": imgui.Key.mod_super, } def __init__(