51 lines
976 B
GDScript
51 lines
976 B
GDScript
class_name LayoutISO extends AbstractLayout
|
|
|
|
|
|
static func name_static() -> String:
|
|
return "ISO"
|
|
|
|
|
|
func rows() -> Array[Array]:
|
|
return [
|
|
CommonLayout.number_row() + [{KeyProps.KEY: KEY_BACKSPACE, KeyProps.W: 2}],
|
|
(
|
|
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
|
+ CommonLayout.letters_row_1()
|
|
+ [
|
|
{
|
|
KeyProps.KEY: KEY_ENTER,
|
|
KeyProps.W: 1.25,
|
|
KeyProps.H: 2,
|
|
KeyProps.X: 0.25,
|
|
KeyProps.SECONDARY_RECT: true,
|
|
KeyProps.W2: 1.5,
|
|
KeyProps.X2: -0.25,
|
|
}
|
|
]
|
|
),
|
|
(
|
|
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
|
+ CommonLayout.letters_row_2()
|
|
+ [{KeyProps.KEY: KEY_BACKSLASH}]
|
|
),
|
|
(
|
|
[
|
|
{
|
|
KeyProps.KEY: KEY_SHIFT,
|
|
KeyProps.W: 1.25,
|
|
KeyProps.LOC: KEY_LOCATION_LEFT
|
|
},
|
|
{KeyProps.KEY: KEY_SECTION},
|
|
]
|
|
+ CommonLayout.letters_row_3()
|
|
+ [
|
|
{
|
|
KeyProps.KEY: KEY_SHIFT,
|
|
KeyProps.W: 2.75,
|
|
KeyProps.LOC: KEY_LOCATION_RIGHT
|
|
}
|
|
]
|
|
),
|
|
CommonLayout.bottom_row()
|
|
]
|