mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
parent
0e5cc58058
commit
5b67880a9b
|
@ -15,18 +15,12 @@ func _input(event: InputEvent) -> void:
|
||||||
continue
|
continue
|
||||||
var t: Tools.Tool = Tools.tools[tool_name]
|
var t: Tools.Tool = Tools.tools[tool_name]
|
||||||
if InputMap.has_action("right_" + t.shortcut + "_tool"):
|
if InputMap.has_action("right_" + t.shortcut + "_tool"):
|
||||||
if (
|
if event.is_action_pressed("right_" + t.shortcut + "_tool", false, true):
|
||||||
event.is_action_pressed("right_" + t.shortcut + "_tool")
|
|
||||||
and (!event.is_command_or_control_pressed())
|
|
||||||
):
|
|
||||||
# Shortcut for right button (with Alt)
|
# Shortcut for right button (with Alt)
|
||||||
Tools.assign_tool(t.name, MOUSE_BUTTON_RIGHT)
|
Tools.assign_tool(t.name, MOUSE_BUTTON_RIGHT)
|
||||||
return
|
return
|
||||||
if InputMap.has_action("left_" + t.shortcut + "_tool"):
|
if InputMap.has_action("left_" + t.shortcut + "_tool"):
|
||||||
if (
|
if event.is_action_pressed("left_" + t.shortcut + "_tool", false, true):
|
||||||
event.is_action_pressed("left_" + t.shortcut + "_tool")
|
|
||||||
and (!event.is_command_or_control_pressed())
|
|
||||||
):
|
|
||||||
# Shortcut for left button
|
# Shortcut for left button
|
||||||
Tools.assign_tool(t.name, MOUSE_BUTTON_LEFT)
|
Tools.assign_tool(t.name, MOUSE_BUTTON_LEFT)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue