mirror of
https://github.com/csd4ni3l/fractal-viewer.git
synced 2026-01-01 04:13:41 +01:00
adjust exit button to be start instead of b
This commit is contained in:
@@ -69,7 +69,7 @@ class IterFractalViewer(arcade.gui.UIView):
|
|||||||
if button_name == "a":
|
if button_name == "a":
|
||||||
self.zoom_start_position = self.cursor_sprite.center_x, self.cursor_sprite.center_y
|
self.zoom_start_position = self.cursor_sprite.center_x, self.cursor_sprite.center_y
|
||||||
self.dragging_with_controller = True
|
self.dragging_with_controller = True
|
||||||
elif button_name == "b":
|
elif button_name == "start":
|
||||||
self.main_exit()
|
self.main_exit()
|
||||||
|
|
||||||
def on_button_release(self, controller, button_name):
|
def on_button_release(self, controller, button_name):
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class SierpinskyCarpetViewer(arcade.gui.UIView):
|
|||||||
def on_button_press(self, controller, name):
|
def on_button_press(self, controller, name):
|
||||||
if name == "a":
|
if name == "a":
|
||||||
self.on_mouse_press(self.cursor_sprite.left, self.cursor_sprite.bottom, arcade.MOUSE_BUTTON_LEFT, 0)
|
self.on_mouse_press(self.cursor_sprite.left, self.cursor_sprite.bottom, arcade.MOUSE_BUTTON_LEFT, 0)
|
||||||
elif name == "b":
|
elif name == "start":
|
||||||
self.main_exit()
|
self.main_exit()
|
||||||
|
|
||||||
def on_stick_motion(self, controller, name, vector):
|
def on_stick_motion(self, controller, name, vector):
|
||||||
|
|||||||
Reference in New Issue
Block a user