93 lines
2.2 KiB
GDScript
93 lines
2.2 KiB
GDScript
class_name LayoutAnsi extends AbstractLayout
|
|
|
|
|
|
static func rows() -> Array[Array]:
|
|
return [
|
|
(
|
|
[
|
|
KeyProps.new(KEY_QUOTELEFT),
|
|
KeyProps.new(KEY_1),
|
|
KeyProps.new(KEY_2),
|
|
KeyProps.new(KEY_3),
|
|
KeyProps.new(KEY_4),
|
|
KeyProps.new(KEY_5),
|
|
KeyProps.new(KEY_6),
|
|
KeyProps.new(KEY_7),
|
|
KeyProps.new(KEY_8),
|
|
KeyProps.new(KEY_9),
|
|
KeyProps.new(KEY_0),
|
|
KeyProps.new(KEY_MINUS),
|
|
KeyProps.new(KEY_EQUAL),
|
|
KeyProps.new(KEY_BACKSPACE, 3.0 / 2.0),
|
|
]
|
|
as Array[KeyProps]
|
|
),
|
|
(
|
|
[
|
|
KeyProps.new(KEY_TAB, 3.0 / 2.0),
|
|
KeyProps.new(KEY_Q),
|
|
KeyProps.new(KEY_W),
|
|
KeyProps.new(KEY_E),
|
|
KeyProps.new(KEY_R),
|
|
KeyProps.new(KEY_T),
|
|
KeyProps.new(KEY_Y),
|
|
KeyProps.new(KEY_U),
|
|
KeyProps.new(KEY_I),
|
|
KeyProps.new(KEY_O),
|
|
KeyProps.new(KEY_P),
|
|
KeyProps.new(KEY_BRACKETLEFT),
|
|
KeyProps.new(KEY_BRACKETRIGHT),
|
|
KeyProps.new(KEY_BACKSLASH),
|
|
]
|
|
as Array[KeyProps]
|
|
),
|
|
(
|
|
[
|
|
KeyProps.new(KEY_CAPSLOCK, 7.0 / 4.0),
|
|
KeyProps.new(KEY_A),
|
|
KeyProps.new(KEY_S),
|
|
KeyProps.new(KEY_D),
|
|
KeyProps.new(KEY_F),
|
|
KeyProps.new(KEY_G),
|
|
KeyProps.new(KEY_H),
|
|
KeyProps.new(KEY_J),
|
|
KeyProps.new(KEY_K),
|
|
KeyProps.new(KEY_L),
|
|
KeyProps.new(KEY_SEMICOLON),
|
|
KeyProps.new(KEY_APOSTROPHE),
|
|
KeyProps.new(KEY_ENTER, 7.0 / 4.0),
|
|
]
|
|
as Array[KeyProps]
|
|
),
|
|
(
|
|
[
|
|
KeyProps.new(KEY_SHIFT, 9.0 / 4.0, KEY_LOCATION_LEFT),
|
|
KeyProps.new(KEY_Z),
|
|
KeyProps.new(KEY_X),
|
|
KeyProps.new(KEY_C),
|
|
KeyProps.new(KEY_V),
|
|
KeyProps.new(KEY_B),
|
|
KeyProps.new(KEY_N),
|
|
KeyProps.new(KEY_M),
|
|
KeyProps.new(KEY_COMMA),
|
|
KeyProps.new(KEY_PERIOD),
|
|
KeyProps.new(KEY_SLASH),
|
|
KeyProps.new(KEY_SHIFT, 9.0 / 4.0, KEY_LOCATION_RIGHT),
|
|
]
|
|
as Array[KeyProps]
|
|
),
|
|
(
|
|
[
|
|
KeyProps.new(KEY_CTRL, 7.0 / 4.0, KEY_LOCATION_LEFT),
|
|
KeyProps.new(KEY_META, 1, KEY_LOCATION_LEFT),
|
|
KeyProps.new(KEY_ALT, 1, KEY_LOCATION_LEFT),
|
|
KeyProps.new(KEY_SPACE, 6),
|
|
KeyProps.new(KEY_ALT, 1, KEY_LOCATION_RIGHT),
|
|
KeyProps.new(KEY_META, 1, KEY_LOCATION_RIGHT),
|
|
KeyProps.new(KEY_MENU),
|
|
KeyProps.new(KEY_CTRL, 7.0 / 4.0, KEY_LOCATION_RIGHT),
|
|
]
|
|
as Array[KeyProps]
|
|
),
|
|
]
|