42 lines
826 B
GDScript
42 lines
826 B
GDScript
class_name LayoutANSI extends AbstractLayout
|
|
|
|
static var name := "ANSI"
|
|
|
|
|
|
func get_name() -> String:
|
|
return name
|
|
|
|
|
|
func get_key_dict_rows() -> Array[Array]:
|
|
return [
|
|
CommonKeys.number_row() + [{KeyProps.KEY: KEY_BACKSPACE, KeyProps.W: 2}],
|
|
(
|
|
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
|
+ CommonKeys.letters_row_1()
|
|
+ [{KeyProps.KEY: KEY_BACKSLASH, KeyProps.W: 1.5}]
|
|
),
|
|
(
|
|
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
|
+ CommonKeys.letters_row_2()
|
|
+ [{KeyProps.KEY: KEY_ENTER, KeyProps.W: 2.25}]
|
|
),
|
|
(
|
|
[
|
|
{
|
|
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()
|
|
]
|