[gd_scene load_steps=4 format=3 uid="uid://chynesmvg3dl5"] [ext_resource type="Texture2D" uid="uid://pa6jmogeid3x" path="res://art/turn.PNG" id="1_58q2i"] [ext_resource type="Texture2D" uid="uid://f8ibqo4nbqqk" path="res://art/bark.PNG" id="3_grsrk"] [sub_resource type="GDScript" id="GDScript_grk35"] script/source = "extends Node2D # https://docs.godotengine.org/en/stable/classes/class_inputeventmidi.html # https://docs.godotengine.org/en/stable/classes/class_%40globalscope.html#enum-globalscope-midimessage # Called when the node enters the scene tree for the first time. func _ready(): OS.open_midi_inputs() print(OS.get_connected_midi_inputs()) func _unhandled_input(event): if event is InputEventKey: if event.keycode == KEY_ESCAPE: get_tree().quit() # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(_delta): # process inputs if Input.is_action_pressed(\"quit\"): # exit the software get_tree().quit() if Input.is_action_pressed(\"left\") or MIDIMessage.MIDI_MESSAGE_CONTROL_CHANGE == 1: # trigger the left controller print(\"left\") if Input.is_action_pressed(\"right\") or MIDIMessage.MIDI_MESSAGE_CONTROL_CHANGE == 1: # trigger the right controller print(\"right\") " [node name="Node2D" type="Node2D"] script = SubResource("GDScript_grk35") [node name="left_turn" type="Sprite2D" parent="."] position = Vector2(270, 284) scale = Vector2(0.22, 0.22) texture = ExtResource("1_58q2i") [node name="right_turn" type="Sprite2D" parent="."] position = Vector2(1625, 269) scale = Vector2(0.22, 0.22) texture = ExtResource("1_58q2i") script = SubResource("GDScript_grk35") [node name="left_bark" type="Sprite2D" parent="."] position = Vector2(137, 307) rotation = -1.29154 scale = Vector2(0.5, 0.5) texture = ExtResource("3_grsrk") [node name="right_bark" type="Sprite2D" parent="."] position = Vector2(1688, 342) rotation = 4.43314 scale = Vector2(0.5, 0.5) texture = ExtResource("3_grsrk") flip_v = true