externalize big ass enter shapes

This commit is contained in:
Teatov 2025-08-02 00:19:47 +10:00
parent 10e4038fea
commit e0c80fc420
5 changed files with 26 additions and 40 deletions

View File

@ -1,6 +1,28 @@
class_name CommonRows
static func big_enter_iso() -> Dictionary:
return {
KeyProps.KEY: KEY_ENTER,
KeyProps.W: 1.25,
KeyProps.H: 2,
KeyProps.X: 0.25,
KeyProps.W2: 1.5,
KeyProps.X2: -0.25,
}
static func big_enter_ansi() -> Dictionary:
return {
KeyProps.KEY: KEY_ENTER,
KeyProps.W: 1.5,
KeyProps.H: 2,
KeyProps.W2: 2.25,
KeyProps.Y2: 1,
KeyProps.X2: -0.75,
}
static func numbers() -> Array:
return [
{KeyProps.KEY: KEY_1},

View File

@ -13,16 +13,7 @@ func get_rows() -> Array[Array]:
(
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
+ CommonRows.letters_row_1()
+ [
{
KeyProps.KEY: KEY_ENTER,
KeyProps.W: 1.25,
KeyProps.H: 2,
KeyProps.X: 0.25,
KeyProps.W2: 1.5,
KeyProps.X2: -0.25,
}
]
+ [CommonRows.big_enter_iso()]
),
(
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]

View File

@ -16,16 +16,7 @@ func get_rows() -> Array[Array]:
(
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
+ CommonRows.letters_row_1()
+ [
{
KeyProps.KEY: KEY_ENTER,
KeyProps.W: 1.5,
KeyProps.H: 2,
KeyProps.W2: 2.25,
KeyProps.Y2: 1,
KeyProps.X2: -0.75,
}
]
+ [CommonRows.big_enter_ansi()]
),
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}] + CommonRows.letters_row_2(),
(

View File

@ -13,16 +13,7 @@ func get_rows() -> Array[Array]:
(
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
+ CommonRows.letters_row_1()
+ [
{
KeyProps.KEY: KEY_ENTER,
KeyProps.W: 1.25,
KeyProps.H: 2,
KeyProps.X: 0.25,
KeyProps.W2: 1.5,
KeyProps.X2: -0.25,
}
]
+ [CommonRows.big_enter_iso()]
),
(
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]

View File

@ -16,16 +16,7 @@ func get_rows() -> Array[Array]:
(
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
+ CommonRows.letters_row_1()
+ [
{
KeyProps.KEY: KEY_ENTER,
KeyProps.W: 1.25,
KeyProps.H: 2,
KeyProps.X: 0.25,
KeyProps.W2: 1.5,
KeyProps.X2: -0.25,
}
]
+ [CommonRows.big_enter_iso()]
),
(
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]