66 lines
1.5 KiB
GDScript
66 lines
1.5 KiB
GDScript
class_name LayoutJIS extends AbstractLayout
|
|
|
|
static var name := "JIS"
|
|
|
|
|
|
func get_name() -> String:
|
|
return name
|
|
|
|
|
|
func get_key_dict_rows() -> Array[Array]:
|
|
return [
|
|
(
|
|
CommonKeys.number_row()
|
|
+ [{KeyProps.KEY: KEY_NONE}, {KeyProps.KEY: KEY_BACKSPACE}]
|
|
),
|
|
(
|
|
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
|
+ CommonKeys.letters_row_1()
|
|
+ [CommonKeys.big_enter_iso()]
|
|
),
|
|
(
|
|
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
|
+ CommonKeys.letters_row_2()
|
|
+ [{KeyProps.KEY: KEY_BACKSLASH}]
|
|
),
|
|
(
|
|
[
|
|
{
|
|
KeyProps.KEY: KEY_SHIFT,
|
|
KeyProps.W: 2.25,
|
|
KeyProps.LOC: KEY_LOCATION_LEFT
|
|
}
|
|
]
|
|
+ CommonKeys.letters_row_3()
|
|
+ [
|
|
{KeyProps.KEY: KEY_NONE},
|
|
{
|
|
KeyProps.KEY: KEY_SHIFT,
|
|
KeyProps.W: 1.75,
|
|
KeyProps.LOC: KEY_LOCATION_RIGHT
|
|
}
|
|
]
|
|
),
|
|
[
|
|
{KeyProps.KEY: KEY_CTRL, KeyProps.W: 1.25, KeyProps.LOC: KEY_LOCATION_LEFT},
|
|
{KeyProps.KEY: KEY_META, KeyProps.W: 1.25, KeyProps.LOC: KEY_LOCATION_LEFT},
|
|
{KeyProps.KEY: KEY_ALT, KeyProps.W: 1.25, KeyProps.LOC: KEY_LOCATION_LEFT},
|
|
{KeyProps.KEY: KEY_NONE, KeyProps.W: 1.25},
|
|
{KeyProps.KEY: KEY_SPACE, KeyProps.W: 2.5},
|
|
{KeyProps.KEY: KEY_NONE, KeyProps.W: 1.25},
|
|
{KeyProps.KEY: KEY_NONE, KeyProps.W: 1.25},
|
|
{KeyProps.KEY: KEY_ALT, KeyProps.W: 1.25, KeyProps.LOC: KEY_LOCATION_RIGHT},
|
|
{
|
|
KeyProps.KEY: KEY_META,
|
|
KeyProps.W: 1.25,
|
|
KeyProps.LOC: KEY_LOCATION_RIGHT
|
|
},
|
|
{KeyProps.KEY: KEY_MENU, KeyProps.W: 1.25},
|
|
{
|
|
KeyProps.KEY: KEY_CTRL,
|
|
KeyProps.W: 1.25,
|
|
KeyProps.LOC: KEY_LOCATION_RIGHT
|
|
},
|
|
]
|
|
]
|