[gd_scene load_steps=5 format=3 uid="uid://c7bwo3h0leip4"] [ext_resource type="Script" uid="uid://bu2nrvyk2k8ib" path="res://controller/controller.gd" id="1_uu6xs"] [ext_resource type="PackedScene" uid="uid://bkw6xqubudrtw" path="res://controller/button/controller_button.tscn" id="2_uu6xs"] [ext_resource type="PackedScene" uid="uid://c1dixxyohl131" path="res://controller/trigger/trigger_button.tscn" id="3_r0du0"] [ext_resource type="PackedScene" uid="uid://dmbbgdsoioadd" path="res://controller/joystick/joystick.tscn" id="4_cm0pq"] [node name="Main" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_uu6xs") [node name="Device" type="RichTextLabel" parent="."] layout_mode = 1 anchors_preset = 10 anchor_right = 1.0 offset_left = 16.0 offset_top = 19.0 offset_right = -26.0 offset_bottom = 67.0 grow_horizontal = 2 theme_override_font_sizes/normal_font_size = 24 text = "No Active Device" [node name="DPad" type="Control" parent="."] layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 offset_left = 191.0 offset_top = -20.0 offset_right = 191.0 offset_bottom = -20.0 grow_vertical = 2 [node name="Up" parent="DPad" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = 1.0 offset_top = -128.0 offset_right = 97.0 offset_bottom = -32.0 input_code = "ui_up" label = "Up" [node name="Left" parent="DPad" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = -95.0 offset_top = -32.0 offset_right = 1.0 offset_bottom = 64.0 input_code = "ui_left" label = "Left" [node name="Right" parent="DPad" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = 97.0 offset_top = -32.0 offset_right = 193.0 offset_bottom = 64.0 input_code = "ui_right" label = "Right" [node name="Down" parent="DPad" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = 1.0 offset_top = 64.0 offset_right = 97.0 offset_bottom = 160.0 input_code = "ui_down" label = "Down" [node name="Actions" type="Control" parent="."] layout_mode = 1 anchors_preset = 6 anchor_left = 1.0 anchor_top = 0.5 anchor_right = 1.0 anchor_bottom = 0.5 offset_left = -288.0 offset_top = -20.0 offset_right = -288.0 offset_bottom = -20.0 grow_horizontal = 0 grow_vertical = 2 [node name="Action4" parent="Actions" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_top = -128.0 offset_bottom = -32.0 input_code = "action_4" label = "Y" [node name="Action3" parent="Actions" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = -96.0 offset_top = -32.0 offset_right = 0.0 offset_bottom = 64.0 input_code = "action_3" label = "X" [node name="Action2" parent="Actions" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = 96.0 offset_top = -32.0 offset_right = 192.0 offset_bottom = 64.0 input_code = "action_2" label = "B" [node name="Action1" parent="Actions" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_top = 64.0 offset_bottom = 160.0 input_code = "action_1" label = "A" [node name="MidButtons" type="Control" parent="."] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -20.0 offset_top = -20.0 offset_right = 20.0 offset_bottom = 20.0 grow_horizontal = 2 grow_vertical = 2 [node name="Select" parent="MidButtons" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = -140.0 offset_top = -32.0 offset_right = -44.0 offset_bottom = 16.0 pivot_offset = Vector2(48, 24) input_code = "select" label = "Select" [node name="Start" parent="MidButtons" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = 84.0 offset_top = -32.0 offset_right = 180.0 offset_bottom = 16.0 pivot_offset = Vector2(48, 24) input_code = "start" label = "Start" [node name="ShoulderButtons" type="Control" parent="."] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -20.0 offset_top = -20.0 offset_right = 20.0 offset_bottom = 20.0 grow_horizontal = 2 grow_vertical = 2 [node name="R1" parent="ShoulderButtons" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = 84.0 offset_top = -231.0 offset_right = 212.0 offset_bottom = -167.0 input_code = "r1" label = "R1" [node name="R2" parent="ShoulderButtons" instance=ExtResource("3_r0du0")] layout_mode = 0 offset_left = 276.0 offset_top = -261.0 offset_right = 340.0 offset_bottom = -133.0 input_axis = 5 label = "R2" [node name="L1" parent="ShoulderButtons" instance=ExtResource("2_uu6xs")] layout_mode = 0 offset_left = -172.0 offset_top = -233.0 offset_right = -44.0 offset_bottom = -169.0 input_code = "l1" label = "L1" [node name="L2" parent="ShoulderButtons" instance=ExtResource("3_r0du0")] layout_mode = 0 offset_left = -300.0 offset_top = -261.0 offset_right = -236.0 offset_bottom = -133.0 input_axis = 4 label = "L2" [node name="LeftJoystick" parent="." instance=ExtResource("4_cm0pq")] layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -320.0 offset_top = -293.0 offset_right = -64.0 offset_bottom = -37.0 grow_horizontal = 2 grow_vertical = 0 axis_y = 1 [node name="RightJoystick" parent="." instance=ExtResource("4_cm0pq")] layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = 64.0 offset_top = -293.0 offset_right = 320.0 offset_bottom = -37.0 grow_horizontal = 2 grow_vertical = 0 axis_x = 2 axis_y = 3