Skip to content

Commit

Permalink
App gui input polling is now explicitly called by the parent app window
Browse files Browse the repository at this point in the history
  • Loading branch information
RealDanTheMan committed Jun 8, 2024
1 parent 1369c60 commit 9e72ba2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyrousel/appgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class AppGUI(object):
def __init__(self, win_handle: _GLFWwindow):
imgui.create_context()
self.__impl = IMRenderer(win_handle)
self.__impl = IMRenderer(win_handle, attach_callbacks=True)
self.import_settings = ImportSettingsPanel()
self.scene_stats = SceneStatsPanel()
self.overlays = OverlaysPanel()
Expand All @@ -20,14 +20,12 @@ def __init__(self, win_handle: _GLFWwindow):
self.light_settings = LightSettingsPanel()
self.transforms = TransformsPanel()

def __ProcessInputs(self) -> None:
def ProcessInputs(self) -> None:
imgui.capture_mouse_from_app(True)
self.__impl.process_inputs()

def __Update(self) -> None:
"""Process GUI inputs and builds UI widgets"""
self.__ProcessInputs()

imgui.new_frame()
imgui.begin("Property Panel")
self.import_settings.Update()
Expand Down

0 comments on commit 9e72ba2

Please sign in to comment.