Remove unnecesseray double UIAnchorLayout with controller support and setting of controller events on window

This commit is contained in:
csd4ni3l
2025-06-25 09:54:19 +02:00
parent ffcf12552a
commit 1780ab7e8d
5 changed files with 14 additions and 23 deletions

View File

@@ -25,9 +25,6 @@ class IterFractalViewer(arcade.gui.UIView):
def on_show_view(self):
super().on_show_view()
self.window.on_stick_motion = self.on_stick_motion
self.window.on_button_press = self.on_button_press
self.window.on_button_release = self.on_button_release
self.shader_program, self.fractal_image = create_iter_calc_shader(
self.fractal_name,

View File

@@ -17,9 +17,7 @@ class SierpinskyCarpetViewer(arcade.gui.UIView):
self.zoom = 1.0
self.click_center = (self.width / 2, self.height / 2)
self.has_controller = False
self.window.on_stick_motion = self.on_stick_motion
def on_show_view(self):
super().on_show_view()