41 lines
795 B
GDScript
41 lines
795 B
GDScript
class_name LayoutANSIVariant extends AbstractLayout
|
|
|
|
static var name := "ANSI (Big-ass Enter)"
|
|
|
|
|
|
func get_name() -> String:
|
|
return name
|
|
|
|
|
|
func get_key_dict_rows() -> Array[Array]:
|
|
return [
|
|
(
|
|
CommonKeys.number_row()
|
|
+ [{KeyProps.KEY: KEY_BACKSLASH}, {KeyProps.KEY: KEY_BACKSPACE}]
|
|
),
|
|
(
|
|
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
|
+ CommonKeys.letters_row_1()
|
|
+ [CommonKeys.big_enter_ansi()]
|
|
),
|
|
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}] + CommonKeys.letters_row_2(),
|
|
(
|
|
[
|
|
{
|
|
KeyProps.KEY: KEY_SHIFT,
|
|
KeyProps.W: 2.25,
|
|
KeyProps.LOC: KEY_LOCATION_LEFT
|
|
}
|
|
]
|
|
+ CommonKeys.letters_row_3()
|
|
+ [
|
|
{
|
|
KeyProps.KEY: KEY_SHIFT,
|
|
KeyProps.W: 2.75,
|
|
KeyProps.LOC: KEY_LOCATION_RIGHT
|
|
}
|
|
]
|
|
),
|
|
CommonKeys.bottom_row()
|
|
]
|