keebie/scripts/layouts/layout_jis.gd

75 lines
1.7 KiB
GDScript

class_name LayoutJIS extends AbstractLayout
static var name := "JIS"
func get_name() -> String:
return name
func get_rows() -> Array[Array]:
return [
(
CommonRows.number_row()
+ [{KeyProps.KEY: KEY_UNKNOWN}, {KeyProps.KEY: KEY_BACKSPACE}]
),
(
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
+ CommonRows.letters_row_1()
+ [
{
KeyProps.KEY: KEY_ENTER,
KeyProps.W: 1.25,
KeyProps.H: 2,
KeyProps.X: 0.25,
KeyProps.W2: 1.5,
KeyProps.X2: -0.25,
}
]
),
(
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
+ CommonRows.letters_row_2()
+ [{KeyProps.KEY: KEY_BACKSLASH}]
),
(
[
{
KeyProps.KEY: KEY_SHIFT,
KeyProps.W: 2.25,
KeyProps.LOC: KEY_LOCATION_LEFT
}
]
+ CommonRows.letters_row_3()
+ [
{KeyProps.KEY: KEY_UNKNOWN},
{
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_SPECIAL, KeyProps.W: 1.25},
{KeyProps.KEY: KEY_SPACE, KeyProps.W: 2.5},
{KeyProps.KEY: KEY_SPECIAL, KeyProps.W: 1.25},
{KeyProps.KEY: KEY_SPECIAL, 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
},
]
]