[gd_scene load_steps=3 format=1] [ext_resource path="res://joysticks.gd" type="Script" id=1] [ext_resource path="res://jsdiagram.tscn" type="PackedScene" id=2] [node name="joysticks" type="Node2D"] script/script = ExtResource( 1 ) __meta__ = { "__editor_plugin_screen__":"Script" } [node name="label_buttons" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 235.0 margin/right = 65.0 margin/bottom = 248.0 text = "Buttons:" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn0" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 20.0 margin/top = 255.0 margin/right = 45.0 margin/bottom = 268.0 text = "0" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn1" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 45.0 margin/top = 255.0 margin/right = 70.0 margin/bottom = 268.0 text = "1" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn2" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 70.0 margin/top = 255.0 margin/right = 95.0 margin/bottom = 268.0 text = "2" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn3" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 95.0 margin/top = 255.0 margin/right = 120.0 margin/bottom = 268.0 text = "3" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn4" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 120.0 margin/top = 255.0 margin/right = 145.0 margin/bottom = 268.0 text = "4" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn5" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 145.0 margin/top = 255.0 margin/right = 170.0 margin/bottom = 268.0 text = "5" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn6" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 170.0 margin/top = 255.0 margin/right = 195.0 margin/bottom = 268.0 text = "6" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn7" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 195.0 margin/top = 255.0 margin/right = 220.0 margin/bottom = 268.0 text = "7" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn8" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 220.0 margin/top = 255.0 margin/right = 245.0 margin/bottom = 268.0 text = "8" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn9" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 20.0 margin/top = 275.0 margin/right = 45.0 margin/bottom = 288.0 text = "9" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn10" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 45.0 margin/top = 275.0 margin/right = 70.0 margin/bottom = 288.0 text = "10" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn11" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 70.0 margin/top = 275.0 margin/right = 95.0 margin/bottom = 288.0 text = "11" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn12" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 95.0 margin/top = 275.0 margin/right = 120.0 margin/bottom = 288.0 text = "12" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn13" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 120.0 margin/top = 275.0 margin/right = 145.0 margin/bottom = 288.0 text = "13" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn14" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 145.0 margin/top = 275.0 margin/right = 170.0 margin/bottom = 288.0 text = "14" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="btn15" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 170.0 margin/top = 275.0 margin/right = 195.0 margin/bottom = 288.0 text = "15" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="axis_prog0" type="ProgressBar" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 60.0 margin/right = 250.0 margin/bottom = 76.0 range/min = -100.0 range/max = 100.0 range/step = 0.0001 range/page = 0.0 range/value = 0.0 range/exp_edit = false range/rounded = false percent/visible = false [node name="axis_prog1" type="ProgressBar" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 80.0 margin/right = 250.0 margin/bottom = 96.0 range/min = -100.0 range/max = 100.0 range/step = 0.0001 range/page = 0.0 range/value = 0.0 range/exp_edit = false range/rounded = false percent/visible = false [node name="axis_prog2" type="ProgressBar" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 100.0 margin/right = 250.0 margin/bottom = 116.0 range/min = -100.0 range/max = 100.0 range/step = 0.0001 range/page = 0.0 range/value = 0.0 range/exp_edit = false range/rounded = false percent/visible = false [node name="axis_prog3" type="ProgressBar" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 120.0 margin/right = 250.0 margin/bottom = 136.0 range/min = -100.0 range/max = 100.0 range/step = 0.0001 range/page = 0.0 range/value = 0.0 range/exp_edit = false range/rounded = false percent/visible = false [node name="axis_prog4" type="ProgressBar" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 140.0 margin/right = 250.0 margin/bottom = 156.0 range/min = -100.0 range/max = 100.0 range/step = 0.0001 range/page = 0.0 range/value = 0.0 range/exp_edit = false range/rounded = false percent/visible = false [node name="axis_prog5" type="ProgressBar" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 160.0 margin/right = 250.0 margin/bottom = 176.0 range/min = -100.0 range/max = 100.0 range/step = 0.0001 range/page = 0.0 range/value = 0.0 range/exp_edit = false range/rounded = false percent/visible = false [node name="axis_prog6" type="ProgressBar" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 180.0 margin/right = 250.0 margin/bottom = 196.0 range/min = -100.0 range/max = 100.0 range/step = 0.0001 range/page = 0.0 range/value = 0.0 range/exp_edit = false range/rounded = false percent/visible = false [node name="axis_prog7" type="ProgressBar" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 200.0 margin/right = 250.0 margin/bottom = 216.0 range/min = -100.0 range/max = 100.0 range/step = 0.0001 range/page = 0.0 range/value = 0.0 range/exp_edit = false range/rounded = false percent/visible = false [node name="axis_val0" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 60.0 margin/right = 250.0 margin/bottom = 75.0 text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="axis_val1" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 80.0 margin/right = 250.0 margin/bottom = 95.0 text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="axis_val2" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 100.0 margin/right = 250.0 margin/bottom = 115.0 text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="axis_val3" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 120.0 margin/right = 250.0 margin/bottom = 135.0 text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="axis_val4" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 140.0 margin/right = 250.0 margin/bottom = 155.0 text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="axis_val5" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 160.0 margin/right = 250.0 margin/bottom = 175.0 text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="axis_val6" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 180.0 margin/right = 250.0 margin/bottom = 195.0 text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="axis_val7" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 50.0 margin/top = 200.0 margin/right = 250.0 margin/bottom = 215.0 text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="label_axis0" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 60.0 margin/right = 51.0 margin/bottom = 75.0 text = "Axis 0" valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="label_axis1" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 80.0 margin/right = 51.0 margin/bottom = 95.0 text = "Axis 1" valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="label_axis2" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 100.0 margin/right = 51.0 margin/bottom = 115.0 text = "Axis 2" valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="label_axis3" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 120.0 margin/right = 51.0 margin/bottom = 135.0 text = "Axis 3" valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="label_axis4" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 140.0 margin/right = 51.0 margin/bottom = 155.0 text = "Axis 4" valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="label_axis5" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 160.0 margin/right = 51.0 margin/bottom = 175.0 text = "Axis 5" valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="label_axis6" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 180.0 margin/right = 51.0 margin/bottom = 195.0 text = "Axis 6" valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="label_axis7" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 200.0 margin/right = 51.0 margin/bottom = 215.0 text = "Axis 7" valign = 2 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="label_device" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 10.0 margin/right = 60.0 margin/bottom = 30.0 text = "Device" valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="joy_num" type="SpinBox" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 size_flags/vertical = 2 margin/left = 65.0 margin/top = 10.0 margin/right = 127.0 margin/bottom = 33.0 range/min = 0.0 range/max = 16.0 range/step = 1.0 range/page = 0.0 range/value = 0.0 range/exp_edit = false range/rounded = false editable = true prefix = "" suffix = "" [node name="joy_name" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 10.0 margin/top = 35.0 margin/right = 250.0 margin/bottom = 50.0 custom_colors/font_color = Color( 0.229156, 1, 0.239205, 1 ) percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="Vibration_weak_value" type="SpinBox" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 size_flags/vertical = 2 margin/left = 163.0 margin/top = 324.0 margin/right = 237.0 margin/bottom = 348.0 range/min = 0.0 range/max = 1.0 range/step = 0.05 range/page = 0.0 range/value = 1.0 range/exp_edit = false range/rounded = false editable = true prefix = "" suffix = "" [node name="Vibration_strong_value" type="SpinBox" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 size_flags/vertical = 2 margin/left = 163.0 margin/top = 362.0 margin/right = 237.0 margin/bottom = 386.0 range/min = 0.0 range/max = 1.0 range/step = 0.05 range/page = 0.0 range/value = 1.0 range/exp_edit = false range/rounded = false editable = true prefix = "" suffix = "" [node name="Vibration_duration_value" type="SpinBox" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 size_flags/vertical = 2 margin/left = 163.0 margin/top = 403.0 margin/right = 237.0 margin/bottom = 427.0 range/min = 0.0 range/max = 10.0 range/step = 0.1 range/page = 0.0 range/value = 1.0 range/exp_edit = false range/rounded = false editable = true prefix = "" suffix = "" [node name="start_vibration" type="Button" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 size_flags/vertical = 2 margin/left = 288.0 margin/top = 352.0 margin/right = 389.0 margin/bottom = 372.0 toggle_mode = false click_on_press = true enabled_focus_mode = 0 shortcut = null text = "Start Vibration" flat = false [node name="stop_vibration" type="Button" parent="."] focus/ignore_mouse = false focus/stop_mouse = true size_flags/horizontal = 2 size_flags/vertical = 2 margin/left = 406.0 margin/top = 352.0 margin/right = 507.0 margin/bottom = 372.0 toggle_mode = false click_on_press = true enabled_focus_mode = 2 shortcut = null text = "Stop Vibration" flat = false [node name="Weak_label" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 8.0 margin/top = 329.0 margin/right = 150.0 margin/bottom = 343.0 text = "Vibration Weak Motor:" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="Strong_label" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 8.0 margin/top = 367.0 margin/right = 150.0 margin/bottom = 381.0 text = "Vibration Strong Motor:" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="Duration_label" type="Label" parent="."] focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 margin/left = 8.0 margin/top = 408.0 margin/right = 155.0 margin/bottom = 439.0 text = "Vibration Duration:" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="diagram" parent="." instance=ExtResource( 2 )] transform/pos = Vector2( 403.304, 161.318 ) [connection signal="pressed" from="start_vibration" to="." method="_on_start_vibration_pressed"] [connection signal="pressed" from="stop_vibration" to="." method="_on_stop_vibration_pressed"]