Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Platform): Fix alternate key combos for aya_gen2. #306

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 33 additions & 15 deletions core/platform/handheld/ayaneo/ayaneo_gen2.tres
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_resource type="Resource" script_class="HandheldPlatform" load_steps=24 format=3 uid="uid://cq2afdo742vjq"]
[gd_resource type="Resource" script_class="HandheldPlatform" load_steps=29 format=3 uid="uid://cq2afdo742vjq"]

[ext_resource type="Script" path="res://core/systems/input/sysfs_device.gd" id="1_sxb4s"]
[ext_resource type="Script" path="res://core/systems/input/events/evdev_key_event.gd" id="2_y36u3"]
Expand Down Expand Up @@ -38,14 +38,14 @@ name = "Volume Down"
activation_keys = Array[Resource("res://core/systems/input/events/evdev_event.gd")]([SubResource("Resource_j8ifh")])
emits = SubResource("Resource_5kiqp")

[sub_resource type="Resource" id="Resource_hpe38"]
script = ExtResource("2_y36u3")
code = "KEY_LEFT"

[sub_resource type="Resource" id="Resource_e5qhq"]
script = ExtResource("2_y36u3")
code = "KEY_KPENTER"

[sub_resource type="Resource" id="Resource_hpe38"]
script = ExtResource("2_y36u3")
code = "KEY_LEFT"

[sub_resource type="Resource" id="Resource_qnbxs"]
script = ExtResource("2_y36u3")
code = "KEY_COPY"
Expand All @@ -57,12 +57,6 @@ code = "BTN_MODE"
[sub_resource type="Resource" id="Resource_ewnjs"]
script = ExtResource("3_uiyw2")
name = "Aya Space"
activation_keys = Array[Resource("res://core/systems/input/events/evdev_event.gd")]([SubResource("Resource_hpe38"), SubResource("Resource_e5qhq"), SubResource("Resource_qnbxs")])
emits = SubResource("Resource_vt8ps")

[sub_resource type="Resource" id="Resource_3ee0g"]
script = ExtResource("3_uiyw2")
name = "Aya Space"
activation_keys = Array[Resource("res://core/systems/input/events/evdev_event.gd")]([SubResource("Resource_e5qhq"), SubResource("Resource_hpe38"), SubResource("Resource_qnbxs")])
emits = SubResource("Resource_vt8ps")

Expand All @@ -84,11 +78,35 @@ name = "Small Buttton"
activation_keys = Array[Resource("res://core/systems/input/events/evdev_event.gd")]([SubResource("Resource_w24iw"), SubResource("Resource_dt4ei")])
emits = SubResource("Resource_ko31g")

[sub_resource type="Resource" id="Resource_ma76b"]
[sub_resource type="Resource" id="Resource_2ib3x"]
script = ExtResource("2_y36u3")
code = "KEY_F12"

[sub_resource type="Resource" id="Resource_0reoq"]
script = ExtResource("2_y36u3")
code = "KEY_RIGHTCTRL"

[sub_resource type="Resource" id="Resource_hkkrh"]
script = ExtResource("2_y36u3")
code = "KEY_LEFTMETA"

[sub_resource type="Resource" id="Resource_fblhk"]
script = ExtResource("3_uiyw2")
name = "Aya Space"
activation_keys = Array[Resource("res://core/systems/input/events/evdev_event.gd")]([SubResource("Resource_2ib3x"), SubResource("Resource_0reoq"), SubResource("Resource_hkkrh")])

[sub_resource type="Resource" id="Resource_ygouk"]
script = ExtResource("2_y36u3")
code = "KEY_D"

[sub_resource type="Resource" id="Resource_xiupp"]
script = ExtResource("2_y36u3")
code = "KEY_LEFTMETA"

[sub_resource type="Resource" id="Resource_0lfuq"]
script = ExtResource("3_uiyw2")
name = "Small Buttton"
activation_keys = Array[Resource("res://core/systems/input/events/evdev_event.gd")]([SubResource("Resource_w24iw"), SubResource("Resource_dt4ei")])
emits = SubResource("Resource_ko31g")
activation_keys = Array[Resource("res://core/systems/input/events/evdev_event.gd")]([SubResource("Resource_ygouk"), SubResource("Resource_xiupp")])

[sub_resource type="Resource" id="Resource_4vawq"]
script = ExtResource("1_sxb4s")
Expand All @@ -97,7 +115,7 @@ name = "AT Translated Set 2 keyboard"

[resource]
script = ExtResource("4_vgjqj")
key_map = Array[ExtResource("3_uiyw2")]([SubResource("Resource_krc84"), SubResource("Resource_kfxia"), SubResource("Resource_ewnjs"), SubResource("Resource_3ee0g"), SubResource("Resource_dddtb"), SubResource("Resource_ma76b")])
key_map = Array[ExtResource("3_uiyw2")]([SubResource("Resource_krc84"), SubResource("Resource_kfxia"), SubResource("Resource_ewnjs"), SubResource("Resource_dddtb"), SubResource("Resource_fblhk"), SubResource("Resource_0lfuq")])
filtered_events = Array[Resource("res://core/systems/input/events/evdev_event.gd")]([])
keypads = Array[ExtResource("1_sxb4s")]([SubResource("Resource_4vawq")])
gamepad = SubResource("Resource_gwcbt")
Expand Down