Fixed The Mouse
This commit is contained in:
parent
81a8068c41
commit
847c72a388
1 changed files with 2 additions and 1 deletions
|
@ -548,7 +548,8 @@ def mouse_button_press(widget, event, win):
|
||||||
|
|
||||||
for i, button in enumerate(["LMB", "MMB", "RMB"]):
|
for i, button in enumerate(["LMB", "MMB", "RMB"]):
|
||||||
if i+1 == int(event.get_button()[1]):
|
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"]
|
# 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
|
# You can know if it's even pressed to begin with. Because if it's not
|
||||||
|
|
Loading…
Reference in a new issue