Fixed The Mouse

This commit is contained in:
Victorious Children Studios 2023-12-21 22:59:08 +02:00
parent 81a8068c41
commit 847c72a388

View file

@ -548,7 +548,8 @@ def mouse_button_press(widget, event, win):
for i, button in enumerate(["LMB", "MMB", "RMB"]):
if i+1 == int(event.get_button()[1]):
win.current[button] = [event.x, event.y]
win.current[button] = [event.x / win.settings["scale"],
event.y / win.settings["scale"]]
# If you folowed the code. By checking for example if win.current["LMB"]
# You can know if it's even pressed to begin with. Because if it's not