Initial commit

Half-baked state. Most of the UI is mostly done, but the integration
with Grist (or any other data provider) is still missing.
This commit is contained in:
Felix
2025-05-11 19:19:24 +02:00
commit 4b1796250c
106 changed files with 7092 additions and 0 deletions

View File

@@ -0,0 +1,503 @@
{
"debug": false,
"layouts": [
{
"name": "standart-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "Q",
"display": "q",
"display-uppercase": "Q"
},
{
"type": "char",
"output": "W",
"display": "w",
"display-uppercase": "W"
},
{
"type": "char",
"output": "E",
"display": "e",
"display-uppercase": "E"
},
{
"type": "char",
"output": "R",
"display": "r",
"display-uppercase": "R"
},
{
"type": "char",
"output": "T",
"display": "t",
"display-uppercase": "T"
},
{
"type": "char",
"output": "Z",
"display": "z",
"display-uppercase": "Z"
},
{
"type": "char",
"output": "U",
"display": "u",
"display-uppercase": "U"
},
{
"type": "char",
"output": "I",
"display": "i",
"display-uppercase": "I"
},
{
"type": "char",
"output": "O",
"display": "o",
"display-uppercase": "O"
},
{
"type": "char",
"output": "P",
"display": "p",
"display-uppercase": "P"
},
{
"type": "char",
"output": "ü",
"display": "ü",
"display-uppercase": "Ü"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "A",
"display": "a",
"display-uppercase": "A"
},
{
"type": "char",
"output": "S",
"display": "s",
"display-uppercase": "S"
},
{
"type": "char",
"output": "D",
"display": "d",
"display-uppercase": "D"
},
{
"type": "char",
"output": "F",
"display": "f",
"display-uppercase": "F"
},
{
"type": "char",
"output": "G",
"display": "g",
"display-uppercase": "G"
},
{
"type": "char",
"output": "H",
"display": "h",
"display-uppercase": "H"
},
{
"type": "char",
"output": "J",
"display": "j",
"display-uppercase": "J"
},
{
"type": "char",
"output": "K",
"display": "k",
"display-uppercase": "K"
},
{
"type": "char",
"output": "L",
"display": "l",
"display-uppercase": "L"
},
{
"type": "char",
"output": "ö",
"display": "ö",
"display-uppercase": "Ö"
},
{
"type": "char",
"output": "ä",
"display": "ä",
"display-uppercase": "Ä"
},
{
"type": "special",
"output": "Return",
"display-icon": "PREDEFINED:ENTER",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "Y",
"display": "y",
"display-uppercase": "Y"
},
{
"type": "char",
"output": "X",
"display": "x",
"display-uppercase": "X"
},
{
"type": "char",
"output": "C",
"display": "c",
"display-uppercase": "C"
},
{
"type": "char",
"output": "V",
"display": "v",
"display-uppercase": "V"
},
{
"type": "char",
"output": "B",
"display": "b",
"display-uppercase": "B"
},
{
"type": "char",
"output": "N",
"display": "n",
"display-uppercase": "N"
},
{
"type": "char",
"output": "M",
"display": "m",
"display-uppercase": "M"
},
{
"type": "char",
"output": "@",
"display": "@",
"display-uppercase": "@"
},
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "special-characters",
"display": "&123",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": ",",
"display": ","
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "char",
"output": ".",
"display": "."
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
},
{
"name": "special-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "1",
"display": "1"
},
{
"type": "char",
"output": "2",
"display": "2"
},
{
"type": "char",
"output": "3",
"display": "3"
},
{
"type": "char",
"output": "4",
"display": "4"
},
{
"type": "char",
"output": "5",
"display": "5"
},
{
"type": "char",
"output": "6",
"display": "6"
},
{
"type": "char",
"output": "7",
"display": "7"
},
{
"type": "char",
"output": "8",
"display": "8"
},
{
"type": "char",
"output": "9",
"display": "9"
},
{
"type": "char",
"output": "0",
"display": "0"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "@",
"display": "@"
},
{
"type": "char",
"output": "#",
"display": "#"
},
{
"type": "char",
"output": "$",
"display": "$"
},
{
"type": "char",
"output": "%",
"display": "%"
},
{
"type": "char",
"output": "&",
"display": "&"
},
{
"type": "char",
"output": "-",
"display": "-"
},
{
"type": "char",
"output": "+",
"display": "+"
},
{
"type": "char",
"output": "=",
"display": "="
},
{
"type": "char",
"output": "~",
"display": "~"
},
{
"type": "char",
"output": "(",
"display": "("
},
{
"type": "char",
"output": ")",
"display": ")"
},
{
"type": "special",
"output": "Return",
"display-icon": "PREDEFINED:ENTER",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "char",
"output": "*",
"display": "*"
},
{
"type": "char",
"output": "\"",
"display": "\""
},
{
"type": "char",
"output": "'",
"display": "'"
},
{
"type": "char",
"output": ":",
"display": ":"
},
{
"type": "char",
"output": ";",
"display": ";"
},
{
"type": "char",
"output": "!",
"display": "!"
},
{
"type": "char",
"output": "?",
"display": "?"
},
{
"type": "char",
"output": "<",
"display": "<"
},
{
"type": "char",
"output": ">",
"display": ">"
},
{
"type": "char",
"output": "{",
"display": "{"
},
{
"type": "char",
"output": "}",
"display": "}"
},
{
"type": "char",
"output": "[",
"display": "["
},
{
"type": "char",
"output": "]",
"display": "]"
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "standart-characters",
"display": "ABC",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "_",
"display": "_"
},
{
"type": "char",
"output": "/",
"display": "/"
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
}
]
}

View File

@@ -0,0 +1,774 @@
{
"debug": false,
"layouts": [
{
"name": "standart-characters-ch-de",
"rows": [
{
"keys": [
{
"type": "char",
"output": "Q",
"display": "q",
"display-uppercase": "Q"
},
{
"type": "char",
"output": "W",
"display": "w",
"display-uppercase": "W"
},
{
"type": "char",
"output": "E",
"display": "e",
"display-uppercase": "E"
},
{
"type": "char",
"output": "R",
"display": "r",
"display-uppercase": "R"
},
{
"type": "char",
"output": "T",
"display": "t",
"display-uppercase": "T"
},
{
"type": "char",
"output": "Z",
"display": "z",
"display-uppercase": "Z"
},
{
"type": "char",
"output": "U",
"display": "u",
"display-uppercase": "U"
},
{
"type": "char",
"output": "I",
"display": "i",
"display-uppercase": "I"
},
{
"type": "char",
"output": "O",
"display": "o",
"display-uppercase": "O"
},
{
"type": "char",
"output": "P",
"display": "p",
"display-uppercase": "P"
},
{
"type": "char",
"output": "ü",
"display": "ü",
"display-uppercase": "Ü"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "A",
"display": "a",
"display-uppercase": "A"
},
{
"type": "char",
"output": "S",
"display": "s",
"display-uppercase": "S"
},
{
"type": "char",
"output": "D",
"display": "d",
"display-uppercase": "D"
},
{
"type": "char",
"output": "F",
"display": "f",
"display-uppercase": "F"
},
{
"type": "char",
"output": "G",
"display": "g",
"display-uppercase": "G"
},
{
"type": "char",
"output": "H",
"display": "h",
"display-uppercase": "H"
},
{
"type": "char",
"output": "J",
"display": "j",
"display-uppercase": "J"
},
{
"type": "char",
"output": "K",
"display": "k",
"display-uppercase": "K"
},
{
"type": "char",
"output": "L",
"display": "l",
"display-uppercase": "L"
},
{
"type": "char",
"output": "ö",
"display": "ö",
"display-uppercase": "Ö"
},
{
"type": "char",
"output": "ä",
"display": "ä",
"display-uppercase": "Ä"
},
{
"type": "special",
"output": "Return",
"display": "Enter",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "Y",
"display": "y",
"display-uppercase": "Y"
},
{
"type": "char",
"output": "X",
"display": "x",
"display-uppercase": "X"
},
{
"type": "char",
"output": "C",
"display": "c",
"display-uppercase": "C"
},
{
"type": "char",
"output": "V",
"display": "v",
"display-uppercase": "V"
},
{
"type": "char",
"output": "B",
"display": "b",
"display-uppercase": "B"
},
{
"type": "char",
"output": "N",
"display": "n",
"display-uppercase": "N"
},
{
"type": "char",
"output": "M",
"display": "m",
"display-uppercase": "M"
},
{
"type": "char",
"output": "@",
"display": "@",
"display-uppercase": "@"
},
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "standart-characters-ch-fr",
"display": "FR",
"stretch-ratio": 1.5
},
{
"type": "switch-layout",
"layout-name": "special-characters",
"display": "&123",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": ",",
"display": ","
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "char",
"output": ".",
"display": "."
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
},
{
"name": "standart-characters-ch-fr",
"rows": [
{
"keys": [
{
"type": "char",
"output": "Q",
"display": "q",
"display-uppercase": "Q"
},
{
"type": "char",
"output": "W",
"display": "w",
"display-uppercase": "W"
},
{
"type": "char",
"output": "E",
"display": "e",
"display-uppercase": "E"
},
{
"type": "char",
"output": "R",
"display": "r",
"display-uppercase": "R"
},
{
"type": "char",
"output": "T",
"display": "t",
"display-uppercase": "T"
},
{
"type": "char",
"output": "Z",
"display": "z",
"display-uppercase": "Z"
},
{
"type": "char",
"output": "U",
"display": "u",
"display-uppercase": "U"
},
{
"type": "char",
"output": "I",
"display": "i",
"display-uppercase": "I"
},
{
"type": "char",
"output": "O",
"display": "o",
"display-uppercase": "O"
},
{
"type": "char",
"output": "P",
"display": "p",
"display-uppercase": "P"
},
{
"type": "char",
"output": "è",
"display": "è",
"display-uppercase": "È"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "A",
"display": "a",
"display-uppercase": "A"
},
{
"type": "char",
"output": "S",
"display": "s",
"display-uppercase": "S"
},
{
"type": "char",
"output": "D",
"display": "d",
"display-uppercase": "D"
},
{
"type": "char",
"output": "F",
"display": "f",
"display-uppercase": "F"
},
{
"type": "char",
"output": "G",
"display": "g",
"display-uppercase": "G"
},
{
"type": "char",
"output": "H",
"display": "h",
"display-uppercase": "H"
},
{
"type": "char",
"output": "J",
"display": "j",
"display-uppercase": "J"
},
{
"type": "char",
"output": "K",
"display": "k",
"display-uppercase": "K"
},
{
"type": "char",
"output": "L",
"display": "l",
"display-uppercase": "L"
},
{
"type": "char",
"output": "é",
"display": "é",
"display-uppercase": "É"
},
{
"type": "char",
"output": "à",
"display": "à",
"display-uppercase": "À"
},
{
"type": "special",
"output": "Return",
"display": "Enter",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "Y",
"display": "y",
"display-uppercase": "Y"
},
{
"type": "char",
"output": "X",
"display": "x",
"display-uppercase": "X"
},
{
"type": "char",
"output": "C",
"display": "c",
"display-uppercase": "C"
},
{
"type": "char",
"output": "V",
"display": "v",
"display-uppercase": "V"
},
{
"type": "char",
"output": "B",
"display": "b",
"display-uppercase": "B"
},
{
"type": "char",
"output": "N",
"display": "n",
"display-uppercase": "N"
},
{
"type": "char",
"output": "M",
"display": "m",
"display-uppercase": "M"
},
{
"type": "char",
"output": "@",
"display": "@",
"display-uppercase": "@"
},
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "standart-characters-ch-de",
"display": "DE",
"stretch-ratio": 1.5
},
{
"type": "switch-layout",
"layout-name": "special-characters",
"display": "&123",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": ",",
"display": ","
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "char",
"output": ".",
"display": "."
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
},
{
"name": "special-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "1",
"display": "1"
},
{
"type": "char",
"output": "2",
"display": "2"
},
{
"type": "char",
"output": "3",
"display": "3"
},
{
"type": "char",
"output": "4",
"display": "4"
},
{
"type": "char",
"output": "5",
"display": "5"
},
{
"type": "char",
"output": "6",
"display": "6"
},
{
"type": "char",
"output": "7",
"display": "7"
},
{
"type": "char",
"output": "8",
"display": "8"
},
{
"type": "char",
"output": "9",
"display": "9"
},
{
"type": "char",
"output": "0",
"display": "0"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "@",
"display": "@"
},
{
"type": "char",
"output": "#",
"display": "#"
},
{
"type": "char",
"output": "$",
"display": "$"
},
{
"type": "char",
"output": "%",
"display": "%"
},
{
"type": "char",
"output": "&",
"display": "&"
},
{
"type": "char",
"output": "-",
"display": "-"
},
{
"type": "char",
"output": "+",
"display": "+"
},
{
"type": "char",
"output": "=",
"display": "="
},
{
"type": "char",
"output": "~",
"display": "~"
},
{
"type": "char",
"output": "(",
"display": "("
},
{
"type": "char",
"output": ")",
"display": ")"
},
{
"type": "special",
"output": "Return",
"display": "Enter",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "char",
"output": "*",
"display": "*"
},
{
"type": "char",
"output": "\"",
"display": "\""
},
{
"type": "char",
"output": "'",
"display": "'"
},
{
"type": "char",
"output": ":",
"display": ":"
},
{
"type": "char",
"output": ";",
"display": ";"
},
{
"type": "char",
"output": "!",
"display": "!"
},
{
"type": "char",
"output": "?",
"display": "?"
},
{
"type": "char",
"output": "<",
"display": "<"
},
{
"type": "char",
"output": ">",
"display": ">"
},
{
"type": "char",
"output": "{",
"display": "{"
},
{
"type": "char",
"output": "}",
"display": "}"
},
{
"type": "char",
"output": "[",
"display": "["
},
{
"type": "char",
"output": "]",
"display": "]"
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "PREVIOUS-LAYOUT",
"display": "ABC",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "_",
"display": "_"
},
{
"type": "char",
"output": "/",
"display": "/"
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
}
]
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,479 @@
{
"debug": false,
"layouts": [
{
"name": "standart-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "Q",
"display": "q",
"display-uppercase": "Q"
},
{
"type": "char",
"output": "W",
"display": "w",
"display-uppercase": "W"
},
{
"type": "char",
"output": "E",
"display": "e",
"display-uppercase": "E"
},
{
"type": "char",
"output": "R",
"display": "r",
"display-uppercase": "R"
},
{
"type": "char",
"output": "T",
"display": "t",
"display-uppercase": "T"
},
{
"type": "char",
"output": "Y",
"display": "y",
"display-uppercase": "Y"
},
{
"type": "char",
"output": "U",
"display": "u",
"display-uppercase": "U"
},
{
"type": "char",
"output": "I",
"display": "i",
"display-uppercase": "I"
},
{
"type": "char",
"output": "O",
"display": "o",
"display-uppercase": "O"
},
{
"type": "char",
"output": "P",
"display": "p",
"display-uppercase": "P"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "A",
"display": "a",
"display-uppercase": "A"
},
{
"type": "char",
"output": "S",
"display": "s",
"display-uppercase": "S"
},
{
"type": "char",
"output": "D",
"display": "d",
"display-uppercase": "D"
},
{
"type": "char",
"output": "F",
"display": "f",
"display-uppercase": "F"
},
{
"type": "char",
"output": "G",
"display": "g",
"display-uppercase": "G"
},
{
"type": "char",
"output": "H",
"display": "h",
"display-uppercase": "H"
},
{
"type": "char",
"output": "J",
"display": "j",
"display-uppercase": "J"
},
{
"type": "char",
"output": "K",
"display": "k",
"display-uppercase": "K"
},
{
"type": "char",
"output": "L",
"display": "l",
"display-uppercase": "L"
},
{
"type": "special",
"output": "Return",
"display": "Enter",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "Z",
"display": "z",
"display-uppercase": "Z"
},
{
"type": "char",
"output": "X",
"display": "x",
"display-uppercase": "X"
},
{
"type": "char",
"output": "C",
"display": "c",
"display-uppercase": "C"
},
{
"type": "char",
"output": "V",
"display": "v",
"display-uppercase": "V"
},
{
"type": "char",
"output": "B",
"display": "b",
"display-uppercase": "B"
},
{
"type": "char",
"output": "N",
"display": "n",
"display-uppercase": "N"
},
{
"type": "char",
"output": "M",
"display": "m",
"display-uppercase": "M"
},
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "special-characters",
"display": "&123",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": ",",
"display": ","
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "char",
"output": ".",
"display": "."
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
},
{
"name": "special-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "1",
"display": "1"
},
{
"type": "char",
"output": "2",
"display": "2"
},
{
"type": "char",
"output": "3",
"display": "3"
},
{
"type": "char",
"output": "4",
"display": "4"
},
{
"type": "char",
"output": "5",
"display": "5"
},
{
"type": "char",
"output": "6",
"display": "6"
},
{
"type": "char",
"output": "7",
"display": "7"
},
{
"type": "char",
"output": "8",
"display": "8"
},
{
"type": "char",
"output": "9",
"display": "9"
},
{
"type": "char",
"output": "0",
"display": "0"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "@",
"display": "@"
},
{
"type": "char",
"output": "#",
"display": "#"
},
{
"type": "char",
"output": "$",
"display": "$"
},
{
"type": "char",
"output": "%",
"display": "%"
},
{
"type": "char",
"output": "&",
"display": "&"
},
{
"type": "char",
"output": "-",
"display": "-"
},
{
"type": "char",
"output": "+",
"display": "+"
},
{
"type": "char",
"output": "=",
"display": "="
},
{
"type": "char",
"output": "~",
"display": "~"
},
{
"type": "char",
"output": "(",
"display": "("
},
{
"type": "char",
"output": ")",
"display": ")"
},
{
"type": "special",
"output": "Return",
"display": "Enter",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "char",
"output": "*",
"display": "*"
},
{
"type": "char",
"output": "\"",
"display": "\""
},
{
"type": "char",
"output": "'",
"display": "'"
},
{
"type": "char",
"output": ":",
"display": ":"
},
{
"type": "char",
"output": ";",
"display": ";"
},
{
"type": "char",
"output": "!",
"display": "!"
},
{
"type": "char",
"output": "?",
"display": "?"
},
{
"type": "char",
"output": "<",
"display": "<"
},
{
"type": "char",
"output": ">",
"display": ">"
},
{
"type": "char",
"output": "{",
"display": "{"
},
{
"type": "char",
"output": "}",
"display": "}"
},
{
"type": "char",
"output": "[",
"display": "["
},
{
"type": "char",
"output": "]",
"display": "]"
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "standart-characters",
"display": "ABC",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "_",
"display": "_"
},
{
"type": "char",
"output": "/",
"display": "/"
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
}
]
}

View File

@@ -0,0 +1,489 @@
{
"debug": false,
"layouts": [
{
"name": "standart-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "Q",
"display": "q",
"display-uppercase": "Q"
},
{
"type": "char",
"output": "W",
"display": "w",
"display-uppercase": "W"
},
{
"type": "char",
"output": "E",
"display": "e",
"display-uppercase": "E"
},
{
"type": "char",
"output": "R",
"display": "r",
"display-uppercase": "R"
},
{
"type": "char",
"output": "T",
"display": "t",
"display-uppercase": "T"
},
{
"type": "char",
"output": "Y",
"display": "y",
"display-uppercase": "Y"
},
{
"type": "char",
"output": "U",
"display": "u",
"display-uppercase": "U"
},
{
"type": "char",
"output": "I",
"display": "i",
"display-uppercase": "I"
},
{
"type": "char",
"output": "O",
"display": "o",
"display-uppercase": "O"
},
{
"type": "char",
"output": "P",
"display": "p",
"display-uppercase": "P"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "A",
"display": "a",
"display-uppercase": "A"
},
{
"type": "char",
"output": "S",
"display": "s",
"display-uppercase": "S"
},
{
"type": "char",
"output": "D",
"display": "d",
"display-uppercase": "D"
},
{
"type": "char",
"output": "F",
"display": "f",
"display-uppercase": "F"
},
{
"type": "char",
"output": "G",
"display": "g",
"display-uppercase": "G"
},
{
"type": "char",
"output": "H",
"display": "h",
"display-uppercase": "H"
},
{
"type": "char",
"output": "J",
"display": "j",
"display-uppercase": "J"
},
{
"type": "char",
"output": "K",
"display": "k",
"display-uppercase": "K"
},
{
"type": "char",
"output": "L",
"display": "l",
"display-uppercase": "L"
},
{
"type": "special",
"output": "Return",
"display": "Enter",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "Z",
"display": "z",
"display-uppercase": "Z"
},
{
"type": "char",
"output": "X",
"display": "x",
"display-uppercase": "X"
},
{
"type": "char",
"output": "C",
"display": "c",
"display-uppercase": "C"
},
{
"type": "char",
"output": "V",
"display": "v",
"display-uppercase": "V"
},
{
"type": "char",
"output": "B",
"display": "b",
"display-uppercase": "B"
},
{
"type": "char",
"output": "N",
"display": "n",
"display-uppercase": "N"
},
{
"type": "char",
"output": "M",
"display": "m",
"display-uppercase": "M"
},
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "special-characters",
"display": "&123",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "-",
"display": "-"
},
{
"type": "char",
"output": "_",
"display": "_"
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 4
},
{
"type": "char",
"output": "@",
"display": "@"
},
{
"type": "char",
"output": ".",
"display": "."
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
},
{
"name": "special-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "1",
"display": "1"
},
{
"type": "char",
"output": "2",
"display": "2"
},
{
"type": "char",
"output": "3",
"display": "3"
},
{
"type": "char",
"output": "4",
"display": "4"
},
{
"type": "char",
"output": "5",
"display": "5"
},
{
"type": "char",
"output": "6",
"display": "6"
},
{
"type": "char",
"output": "7",
"display": "7"
},
{
"type": "char",
"output": "8",
"display": "8"
},
{
"type": "char",
"output": "9",
"display": "9"
},
{
"type": "char",
"output": "0",
"display": "0"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "@",
"display": "@"
},
{
"type": "char",
"output": "#",
"display": "#"
},
{
"type": "char",
"output": "$",
"display": "$"
},
{
"type": "char",
"output": "%",
"display": "%"
},
{
"type": "char",
"output": "&",
"display": "&"
},
{
"type": "char",
"output": "-",
"display": "-"
},
{
"type": "char",
"output": "+",
"display": "+"
},
{
"type": "char",
"output": "=",
"display": "="
},
{
"type": "char",
"output": "~",
"display": "~"
},
{
"type": "char",
"output": "(",
"display": "("
},
{
"type": "char",
"output": ")",
"display": ")"
},
{
"type": "special",
"output": "Return",
"display": "Enter",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "char",
"output": "*",
"display": "*"
},
{
"type": "char",
"output": "\"",
"display": "\""
},
{
"type": "char",
"output": "'",
"display": "'"
},
{
"type": "char",
"output": ":",
"display": ":"
},
{
"type": "char",
"output": ";",
"display": ";"
},
{
"type": "char",
"output": "!",
"display": "!"
},
{
"type": "char",
"output": "?",
"display": "?"
},
{
"type": "char",
"output": "<",
"display": "<"
},
{
"type": "char",
"output": ">",
"display": ">"
},
{
"type": "char",
"output": "{",
"display": "{"
},
{
"type": "char",
"output": "}",
"display": "}"
},
{
"type": "char",
"output": "[",
"display": "["
},
{
"type": "char",
"output": "]",
"display": "]"
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "standart-characters",
"display": "ABC",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "_",
"display": "_"
},
{
"type": "char",
"output": "/",
"display": "/"
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
}
]
}

View File

@@ -0,0 +1,479 @@
{
"debug": false,
"layouts": [
{
"name": "standart-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "Q",
"display": "q",
"display-uppercase": "Q"
},
{
"type": "char",
"output": "W",
"display": "w",
"display-uppercase": "W"
},
{
"type": "char",
"output": "E",
"display": "e",
"display-uppercase": "E"
},
{
"type": "char",
"output": "R",
"display": "r",
"display-uppercase": "R"
},
{
"type": "char",
"output": "T",
"display": "t",
"display-uppercase": "T"
},
{
"type": "char",
"output": "Y",
"display": "y",
"display-uppercase": "Y"
},
{
"type": "char",
"output": "U",
"display": "u",
"display-uppercase": "U"
},
{
"type": "char",
"output": "I",
"display": "i",
"display-uppercase": "I"
},
{
"type": "char",
"output": "O",
"display": "o",
"display-uppercase": "O"
},
{
"type": "char",
"output": "P",
"display": "p",
"display-uppercase": "P"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "A",
"display": "a",
"display-uppercase": "A"
},
{
"type": "char",
"output": "S",
"display": "s",
"display-uppercase": "S"
},
{
"type": "char",
"output": "D",
"display": "d",
"display-uppercase": "D"
},
{
"type": "char",
"output": "F",
"display": "f",
"display-uppercase": "F"
},
{
"type": "char",
"output": "G",
"display": "g",
"display-uppercase": "G"
},
{
"type": "char",
"output": "H",
"display": "h",
"display-uppercase": "H"
},
{
"type": "char",
"output": "J",
"display": "j",
"display-uppercase": "J"
},
{
"type": "char",
"output": "K",
"display": "k",
"display-uppercase": "K"
},
{
"type": "char",
"output": "L",
"display": "l",
"display-uppercase": "L"
},
{
"type": "special",
"output": "Return",
"display-icon": "PREDEFINED:ENTER",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "Z",
"display": "z",
"display-uppercase": "Z"
},
{
"type": "char",
"output": "X",
"display": "x",
"display-uppercase": "X"
},
{
"type": "char",
"output": "C",
"display": "c",
"display-uppercase": "C"
},
{
"type": "char",
"output": "V",
"display": "v",
"display-uppercase": "V"
},
{
"type": "char",
"output": "B",
"display": "b",
"display-uppercase": "B"
},
{
"type": "char",
"output": "N",
"display": "n",
"display-uppercase": "N"
},
{
"type": "char",
"output": "M",
"display": "m",
"display-uppercase": "M"
},
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "special-characters",
"display": "&123",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": ",",
"display": ","
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "char",
"output": ".",
"display": "."
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
},
{
"name": "special-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "1",
"display": "1"
},
{
"type": "char",
"output": "2",
"display": "2"
},
{
"type": "char",
"output": "3",
"display": "3"
},
{
"type": "char",
"output": "4",
"display": "4"
},
{
"type": "char",
"output": "5",
"display": "5"
},
{
"type": "char",
"output": "6",
"display": "6"
},
{
"type": "char",
"output": "7",
"display": "7"
},
{
"type": "char",
"output": "8",
"display": "8"
},
{
"type": "char",
"output": "9",
"display": "9"
},
{
"type": "char",
"output": "0",
"display": "0"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "@",
"display": "@"
},
{
"type": "char",
"output": "#",
"display": "#"
},
{
"type": "char",
"output": "$",
"display": "$"
},
{
"type": "char",
"output": "%",
"display": "%"
},
{
"type": "char",
"output": "&",
"display": "&"
},
{
"type": "char",
"output": "-",
"display": "-"
},
{
"type": "char",
"output": "+",
"display": "+"
},
{
"type": "char",
"output": "=",
"display": "="
},
{
"type": "char",
"output": "~",
"display": "~"
},
{
"type": "char",
"output": "(",
"display": "("
},
{
"type": "char",
"output": ")",
"display": ")"
},
{
"type": "special",
"output": "Return",
"display-icon": "PREDEFINED:ENTER",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "char",
"output": "*",
"display": "*"
},
{
"type": "char",
"output": "\"",
"display": "\""
},
{
"type": "char",
"output": "'",
"display": "'"
},
{
"type": "char",
"output": ":",
"display": ":"
},
{
"type": "char",
"output": ";",
"display": ";"
},
{
"type": "char",
"output": "!",
"display": "!"
},
{
"type": "char",
"output": "?",
"display": "?"
},
{
"type": "char",
"output": "<",
"display": "<"
},
{
"type": "char",
"output": ">",
"display": ">"
},
{
"type": "char",
"output": "{",
"display": "{"
},
{
"type": "char",
"output": "}",
"display": "}"
},
{
"type": "char",
"output": "[",
"display": "["
},
{
"type": "char",
"output": "]",
"display": "]"
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "standart-characters",
"display": "ABC",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "_",
"display": "_"
},
{
"type": "char",
"output": "/",
"display": "/"
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
}
]
}

View File

@@ -0,0 +1,503 @@
{
"debug": false,
"layouts": [
{
"name": "standart-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "Q",
"display": "q",
"display-uppercase": "Q"
},
{
"type": "char",
"output": "W",
"display": "w",
"display-uppercase": "W"
},
{
"type": "char",
"output": "E",
"display": "e",
"display-uppercase": "E"
},
{
"type": "char",
"output": "R",
"display": "r",
"display-uppercase": "R"
},
{
"type": "char",
"output": "T",
"display": "t",
"display-uppercase": "T"
},
{
"type": "char",
"output": "Z",
"display": "z",
"display-uppercase": "Z"
},
{
"type": "char",
"output": "U",
"display": "u",
"display-uppercase": "U"
},
{
"type": "char",
"output": "I",
"display": "i",
"display-uppercase": "I"
},
{
"type": "char",
"output": "O",
"display": "o",
"display-uppercase": "O"
},
{
"type": "char",
"output": "P",
"display": "p",
"display-uppercase": "P"
},
{
"type": "char",
"output": "è",
"display": "è",
"display-uppercase": "È"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "A",
"display": "a",
"display-uppercase": "A"
},
{
"type": "char",
"output": "S",
"display": "s",
"display-uppercase": "S"
},
{
"type": "char",
"output": "D",
"display": "d",
"display-uppercase": "D"
},
{
"type": "char",
"output": "F",
"display": "f",
"display-uppercase": "F"
},
{
"type": "char",
"output": "G",
"display": "g",
"display-uppercase": "G"
},
{
"type": "char",
"output": "H",
"display": "h",
"display-uppercase": "H"
},
{
"type": "char",
"output": "J",
"display": "j",
"display-uppercase": "J"
},
{
"type": "char",
"output": "K",
"display": "k",
"display-uppercase": "K"
},
{
"type": "char",
"output": "L",
"display": "l",
"display-uppercase": "L"
},
{
"type": "char",
"output": "é",
"display": "é",
"display-uppercase": "É"
},
{
"type": "char",
"output": "à",
"display": "à",
"display-uppercase": "À"
},
{
"type": "special",
"output": "Return",
"display-icon": "PREDEFINED:ENTER",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "Y",
"display": "y",
"display-uppercase": "Y"
},
{
"type": "char",
"output": "X",
"display": "x",
"display-uppercase": "X"
},
{
"type": "char",
"output": "C",
"display": "c",
"display-uppercase": "C"
},
{
"type": "char",
"output": "V",
"display": "v",
"display-uppercase": "V"
},
{
"type": "char",
"output": "B",
"display": "b",
"display-uppercase": "B"
},
{
"type": "char",
"output": "N",
"display": "n",
"display-uppercase": "N"
},
{
"type": "char",
"output": "M",
"display": "m",
"display-uppercase": "M"
},
{
"type": "char",
"output": "@",
"display": "@",
"display-uppercase": "@"
},
{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "special-characters",
"display": "&123",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": ",",
"display": ","
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "char",
"output": ".",
"display": "."
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
},
{
"name": "special-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "1",
"display": "1"
},
{
"type": "char",
"output": "2",
"display": "2"
},
{
"type": "char",
"output": "3",
"display": "3"
},
{
"type": "char",
"output": "4",
"display": "4"
},
{
"type": "char",
"output": "5",
"display": "5"
},
{
"type": "char",
"output": "6",
"display": "6"
},
{
"type": "char",
"output": "7",
"display": "7"
},
{
"type": "char",
"output": "8",
"display": "8"
},
{
"type": "char",
"output": "9",
"display": "9"
},
{
"type": "char",
"output": "0",
"display": "0"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "@",
"display": "@"
},
{
"type": "char",
"output": "#",
"display": "#"
},
{
"type": "char",
"output": "$",
"display": "$"
},
{
"type": "char",
"output": "%",
"display": "%"
},
{
"type": "char",
"output": "&",
"display": "&"
},
{
"type": "char",
"output": "-",
"display": "-"
},
{
"type": "char",
"output": "+",
"display": "+"
},
{
"type": "char",
"output": "=",
"display": "="
},
{
"type": "char",
"output": "~",
"display": "~"
},
{
"type": "char",
"output": "(",
"display": "("
},
{
"type": "char",
"output": ")",
"display": ")"
},
{
"type": "special",
"output": "Return",
"display-icon": "PREDEFINED:ENTER",
"stretch-ratio": 2
}
]
},
{
"keys": [
{
"type": "char",
"output": "*",
"display": "*"
},
{
"type": "char",
"output": "\"",
"display": "\""
},
{
"type": "char",
"output": "'",
"display": "'"
},
{
"type": "char",
"output": ":",
"display": ":"
},
{
"type": "char",
"output": ";",
"display": ";"
},
{
"type": "char",
"output": "!",
"display": "!"
},
{
"type": "char",
"output": "?",
"display": "?"
},
{
"type": "char",
"output": "<",
"display": "<"
},
{
"type": "char",
"output": ">",
"display": ">"
},
{
"type": "char",
"output": "{",
"display": "{"
},
{
"type": "char",
"output": "}",
"display": "}"
},
{
"type": "char",
"output": "[",
"display": "["
},
{
"type": "char",
"output": "]",
"display": "]"
}
]
},
{
"keys": [
{
"type": "switch-layout",
"layout-name": "standart-characters",
"display": "ABC",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": "_",
"display": "_"
},
{
"type": "char",
"output": "/",
"display": "/"
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
}
]
}

View File

@@ -0,0 +1,103 @@
{
"debug": false,
"layouts": [
{
"name": "special-characters",
"rows": [
{
"keys": [
{
"type": "char",
"output": "7",
"display": "7"
},
{
"type": "char",
"output": "8",
"display": "8"
},
{
"type": "char",
"output": "9",
"display": "9"
},
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE"
}
]
},
{
"keys": [
{
"type": "char",
"output": "4",
"display": "4"
},
{
"type": "char",
"output": "5",
"display": "5"
},
{
"type": "char",
"output": "6",
"display": "6"
},
{
"type": "special",
"output": "Return",
"display-icon": "PREDEFINED:ENTER"
}
]
},
{
"keys": [
{
"type": "char",
"output": "1",
"display": "1"
},
{
"type": "char",
"output": "2",
"display": "2"
},
{
"type": "char",
"output": "3",
"display": "3"
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT",
"stretch-ratio": 0.5
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT",
"stretch-ratio": 0.5
}
]
},
{
"keys": [
{
"type": "char",
"output": "0",
"display": "0",
"stretch-ratio": 3
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE"
}
]
}
]
}
]
}

View File

@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://dkf54c5tfeq3k"
path="res://.godot/imported/Roboto-Black.ttf-3a6d23129386c63e405f432555863239.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-Black.ttf"
dest_files=["res://.godot/imported/Roboto-Black.ttf-3a6d23129386c63e405f432555863239.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://ci2f1xov7agyf"
path="res://.godot/imported/Roboto-BlackItalic.ttf-936da28d87aadc879dfcb940800f101c.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-BlackItalic.ttf"
dest_files=["res://.godot/imported/Roboto-BlackItalic.ttf-936da28d87aadc879dfcb940800f101c.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://bklcb8n1gxh3g"
path="res://.godot/imported/Roboto-Bold.ttf-954b76472f748217715da476df245179.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-Bold.ttf"
dest_files=["res://.godot/imported/Roboto-Bold.ttf-954b76472f748217715da476df245179.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://cvn8o52hldb2t"
path="res://.godot/imported/Roboto-BoldItalic.ttf-0a60b877d73eb184f621154654b7c39f.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-BoldItalic.ttf"
dest_files=["res://.godot/imported/Roboto-BoldItalic.ttf-0a60b877d73eb184f621154654b7c39f.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://pafyrbyfkt2"
path="res://.godot/imported/Roboto-Italic.ttf-2b59c8d82a1cdf52d8bdeb53c078071a.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-Italic.ttf"
dest_files=["res://.godot/imported/Roboto-Italic.ttf-2b59c8d82a1cdf52d8bdeb53c078071a.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://di801warnlprs"
path="res://.godot/imported/Roboto-Light.ttf-edc04cc2498312e3cc4e0b143b523785.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-Light.ttf"
dest_files=["res://.godot/imported/Roboto-Light.ttf-edc04cc2498312e3cc4e0b143b523785.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://dd1iqnwb2lrbe"
path="res://.godot/imported/Roboto-LightItalic.ttf-a63677b9eb5bd1be06bd746031e05f60.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-LightItalic.ttf"
dest_files=["res://.godot/imported/Roboto-LightItalic.ttf-a63677b9eb5bd1be06bd746031e05f60.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://bfb3kn4gv1qmu"
path="res://.godot/imported/Roboto-Medium.ttf-0f924a451ced4814f3a105b116e43327.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-Medium.ttf"
dest_files=["res://.godot/imported/Roboto-Medium.ttf-0f924a451ced4814f3a105b116e43327.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://bpk2rmnk01euk"
path="res://.godot/imported/Roboto-MediumItalic.ttf-743d1eb483a26229609e0e229f26d44f.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-MediumItalic.ttf"
dest_files=["res://.godot/imported/Roboto-MediumItalic.ttf-743d1eb483a26229609e0e229f26d44f.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://bybpu41sfha6q"
path="res://.godot/imported/Roboto-Regular.ttf-317ae00b13e20e427fb68c7e751997fd.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-Regular.ttf"
dest_files=["res://.godot/imported/Roboto-Regular.ttf-317ae00b13e20e427fb68c7e751997fd.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://cfvgrvwahpg6c"
path="res://.godot/imported/Roboto-Thin.ttf-116bf0b55b8b810dc526d18a47965c0e.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-Thin.ttf"
dest_files=["res://.godot/imported/Roboto-Thin.ttf-116bf0b55b8b810dc526d18a47965c0e.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,35 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://dr2taaayxl07h"
path="res://.godot/imported/Roboto-ThinItalic.ttf-6096d6e7d19228df21ba963af2d824dd.fontdata"
[deps]
source_file="res://addons/onscreenkeyboard/customize/styles/Roboto/Roboto-ThinItalic.ttf"
dest_files=["res://.godot/imported/Roboto-ThinItalic.ttf-6096d6e7d19228df21ba963af2d824dd.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@@ -0,0 +1,9 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
bg_color = Color( 0.137255, 0.137255, 0.137255, 1 )
border_width_left = 5
border_width_top = 5
border_width_right = 5
border_width_bottom = 5
border_color = Color( 0.137255, 0.137255, 0.137255, 1 )

View File

@@ -0,0 +1,4 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
bg_color = Color( 0.396078, 0.396078, 0.396078, 1 )

View File

@@ -0,0 +1,4 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
bg_color = Color( 0.168627, 0.168627, 0.168627, 1 )

View File

@@ -0,0 +1,4 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
bg_color = Color( 0.196078, 0.196078, 0.196078, 1 )

View File

@@ -0,0 +1,4 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
bg_color = Color( 0.352941, 0.352941, 0.352941, 1 )

View File

@@ -0,0 +1,159 @@
extends "keyboard_layout.gd"
func _init():
data = {
"debug": false,
"layouts": [
{
"name": "standart-characters",
"rows": [
make_row(
[],
"qwertyuiop",
[
{
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
),
make_row(
[],
"asdfghjkl",
[{
"output": "Return",
"display": "Enter",
"stretch-ratio": 1.5
}]
),
make_row(
[{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 1.5
}],
"zxcvbnm",
[{
"type": "special-shift",
"display-icon": "PREDEFINED:SHIFT",
"stretch-ratio": 2
}]
),
{
"keys": [
{
"type": "switch-layout",
"layout-name": "special-characters",
"display": "&123",
"stretch-ratio": 1.5
},
{
"type": "char",
"output": ",",
"display": ","
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "char",
"output": ".",
"display": "."
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
}
]
},
{
"name": "special-characters",
"rows": [
make_row(
[],
"1234567890",
[
{
"type": "special",
"output": "Backspace",
"display-icon": "PREDEFINED:DELETE",
"stretch-ratio": 1.5
}
]
),
make_row(
[],
"@#$%&-+=~()",
[{
"type": "special",
"output": "Return",
"display": "Enter",
"stretch-ratio": 2
}]
),
make_row(
[],
"*\"':;!?<>{}[]",
[]
),
make_row(
[{
"type": "switch-layout",
"layout-name": "standart-characters",
"display": "ABC",
"stretch-ratio": 1.5
}],
"",
[
{
"type": "char",
"output": "_",
"display": "_"
},
{
"type": "char",
"output": "/",
"display": "/"
},
{
"type": "char",
"output": "Space",
"stretch-ratio": 5
},
{
"type": "special",
"output": "LeftArrow",
"display-icon": "PREDEFINED:LEFT"
},
{
"type": "special",
"output": "RightArrow",
"display-icon": "PREDEFINED:RIGHT"
},
{
"type": "special-hide-keyboard",
"display-icon": "PREDEFINED:HIDE",
"stretch-ratio": 2
}
]
)
]
}
]
}

View File

@@ -0,0 +1 @@
uid://c2nxm6n3j1yyc

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cbw5cxngaegs2"
path="res://.godot/imported/icon.png-1820cabf3154c9de149e7c7384ae75c8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/onscreenkeyboard/icon.png"
dest_files=["res://.godot/imported/icon.png-1820cabf3154c9de149e7c7384ae75c8.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 804 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bpbbpi6i7awge"
path="res://.godot/imported/delete.png-b01e572d8ec8710e1daa5534c18cc37b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/onscreenkeyboard/icons/delete.png"
dest_files=["res://.godot/imported/delete.png-b01e572d8ec8710e1daa5534c18cc37b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ckka5a46w64vo"
path="res://.godot/imported/enter.png-497f062a48973d07409910c473b115bd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/onscreenkeyboard/icons/enter.png"
dest_files=["res://.godot/imported/enter.png-497f062a48973d07409910c473b115bd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 819 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dtxe3f0k8nplr"
path="res://.godot/imported/hide.png-f9d90aaab875bd6c25846aaabff43d46.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/onscreenkeyboard/icons/hide.png"
dest_files=["res://.godot/imported/hide.png-f9d90aaab875bd6c25846aaabff43d46.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ljqr1fd0oj04"
path="res://.godot/imported/left.png-58fef998906dfee2cc9d22147e12661d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/onscreenkeyboard/icons/left.png"
dest_files=["res://.godot/imported/left.png-58fef998906dfee2cc9d22147e12661d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c76pllnsybmwp"
path="res://.godot/imported/right.png-6c4325eee1d17697ef0ca71f15443116.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/onscreenkeyboard/icons/right.png"
dest_files=["res://.godot/imported/right.png-6c4325eee1d17697ef0ca71f15443116.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dfw3kibnurabp"
path="res://.godot/imported/shift.png-2155a58070add20917502fe6933338ef.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/onscreenkeyboard/icons/shift.png"
dest_files=["res://.godot/imported/shift.png-2155a58070add20917502fe6933338ef.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -0,0 +1,67 @@
extends Button
var key_data
signal released
signal down
var icon_tex_rect
func _enter_tree():
pass
func _ready():
pass # Replace with function body.
func _init(_key_data):
key_data = _key_data
button_down.connect(_on_button_down)
button_up.connect(_on_button_up)
item_rect_changed.connect(_on_item_rect_changed)
size_flags_horizontal = SIZE_EXPAND_FILL
size_flags_vertical = SIZE_EXPAND_FILL
focus_mode = FOCUS_NONE
if key_data.has("display"):
text = key_data.get("display")
if key_data.has("stretch-ratio"):
size_flags_stretch_ratio = key_data.get("stretch-ratio")
func set_icon_color(color):
if icon_tex_rect != null:
icon_tex_rect.modulate = color
func set_icon(texture):
icon_tex_rect = TextureRect.new()
icon_tex_rect.ignore_texture_size = true
icon_tex_rect.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
icon_tex_rect.texture = texture
add_child(icon_tex_rect)
func change_uppercase(value):
if value:
if key_data.has("display-uppercase"):
text = key_data.get("display-uppercase")
else:
if key_data.has("display"):
text = key_data.get("display")
func _on_item_rect_changed():
if icon_tex_rect != null:
icon_tex_rect.size = size
func _on_button_up():
released.emit(key_data)
release_focus()
func _on_button_down():
down.emit(key_data)

View File

@@ -0,0 +1 @@
uid://dn1uh0qsyvc8d

View File

@@ -0,0 +1,51 @@
class_name KeyboardLayout
extends Node
var data:Dictionary = {}
func generate_character_data(char:String) -> Dictionary:
if char == "":
return {}
char = char.to_upper()
data = {
"type": "char",
"output": char,
"display": char.to_lower(),
}
# if uppercase != lowercase
if char != char.to_lower():
data["display-uppercase"] = char
return data
func generate_characters_data(chars:String) -> Array:
var keys = []
for char in chars.split(""):
var data = generate_character_data(char)
if data != {}:
keys.append(data)
return keys
func set_special(keys):
for key in keys:
if !("type" in key):
key["type"] = "special"
func make_row(left_special_keys: Array, chars: String, right_special_keys: Array):
set_special(left_special_keys)
set_special(right_special_keys)
var keys = left_special_keys
var data = generate_characters_data(chars)
if data != []:
keys.append_array(data)
if right_special_keys != []:
keys.append_array(right_special_keys)
return {
"keys": keys
}

View File

@@ -0,0 +1 @@
uid://c7pe43iyhddlw

View File

@@ -0,0 +1,337 @@
extends Node
# ##########
# map strings from keyboard layout to godot global defined keys
# https://docs.godotengine.org/en/stable/classes/class_@globalscope.html
# Keys that are not available in the global scope of godot are represented by their decimal ASCII code
# ADD NEW KEY:
# extract new decimal ASCII codes from here: https://www.ascii-code.com/ISO-8859-1
# create entry with new name and reuse this name in your keyboard layout .json
# ##########
var key_list = {
"Escape":KEY_ESCAPE,
"Tab":KEY_TAB,
#"Shift-Tab":16777219,
"Backspace":KEY_BACKSPACE,
"Return":KEY_ENTER,
"Enter":KEY_KP_ENTER,
"Insert":KEY_INSERT,
"Delete":KEY_DELETE,
"Pause":KEY_PAUSE,
"Printscreen":KEY_PRINT,
"SystemRequest":KEY_SYSREQ,
"Clear":KEY_CLEAR,
"Home":KEY_HOME,
"End":KEY_END,
"LeftArrow":KEY_LEFT,
"UpArrow":KEY_UP,
"RightArrow":KEY_RIGHT,
"DownArrow":KEY_DOWN,
"Pageup":KEY_PAGEUP,
"Pagedown":KEY_PAGEDOWN,
"Shift":KEY_SHIFT,
"Control":KEY_CTRL,
"Meta":KEY_META,
"Alt":KEY_ALT,
"Capslock":KEY_CAPSLOCK,
"Numlock":KEY_NUMLOCK,
"Scrolllock":KEY_SCROLLLOCK,
"F1":KEY_F1,
"F2":KEY_F2,
"F3":KEY_F3,
"F4":KEY_F4,
"F5":KEY_F5,
"F6":KEY_F6,
"F7":KEY_F7,
"F8":KEY_F8,
"F9":KEY_F9,
"F10":KEY_F10,
"F11":KEY_F11,
"F12":KEY_F12,
"F13":KEY_F13,
"F14":KEY_F14,
"F15":KEY_F15,
"F16":KEY_F16,
"MultiplyonNumpad":KEY_KP_MULTIPLY,
"DivideonNumpad":KEY_KP_DIVIDE,
"SubtractonNumpad":KEY_KP_SUBTRACT,
"PeriodonNumpad":KEY_KP_PERIOD,
"AddonNumpad":KEY_KP_ADD,
"Number0onNumpad":KEY_KP_0,
"Number1onNumpad":KEY_KP_1,
"Number2onNumpad":KEY_KP_2,
"Number3onNumpad":KEY_KP_3,
"Number4onNumpad":KEY_KP_4,
"Number5onNumpad":KEY_KP_5,
"Number6onNumpad":KEY_KP_6,
"Number7onNumpad":KEY_KP_7,
"Number8onNumpad":KEY_KP_8,
"Number9onNumpad":KEY_KP_9,
#"LeftSuper(Windows)":16777260,
#"RightSuper(Windows)":16777261,
"Contextmenu":KEY_MENU,
"LeftHyper":KEY_HYPER,
"RightHyper":KEY_HYPER,
"Help":KEY_HELP,
#"LeftDirection":16777266,
#"RightDirection":16777267,
"Back":KEY_BACK,
"Forward":KEY_FORWARD,
"Stop":KEY_STOP,
"Refresh":KEY_REFRESH,
"Volumedown":KEY_VOLUMEDOWN,
"Mutevolume":KEY_VOLUMEMUTE,
"Volumeup":KEY_VOLUMEUP,
#"BassBoost":16777287,
#"BassUp":16777288,
#"BassDown":16777289,
#"TrebleUp":16777290,
#"TrebleDown":16777291,
"Mediaplay":KEY_MEDIAPLAY,
"Mediastop":KEY_MEDIASTOP,
"Previoussong":KEY_MEDIAPREVIOUS,
"Nextsong":KEY_MEDIANEXT,
"Mediarecord":KEY_MEDIARECORD,
"Homepage":KEY_HOMEPAGE,
"Favorites":KEY_FAVORITES,
"Search":KEY_SEARCH,
"Standby":KEY_STANDBY,
"OpenURL/LaunchBrowser":KEY_OPENURL,
"LaunchMail":KEY_LAUNCHMAIL,
"LaunchMedia":KEY_LAUNCHMEDIA,
"LaunchShortcut0":KEY_LAUNCH0,
"LaunchShortcut1":KEY_LAUNCH1,
"LaunchShortcut2":KEY_LAUNCH2,
"LaunchShortcut3":KEY_LAUNCH3,
"LaunchShortcut4":KEY_LAUNCH4,
"LaunchShortcut5":KEY_LAUNCH5,
"LaunchShortcut6":KEY_LAUNCH6,
"LaunchShortcut7":KEY_LAUNCH7,
"LaunchShortcut8":KEY_LAUNCH8,
"LaunchShortcut9":KEY_LAUNCH9,
"LaunchShortcutA":KEY_LAUNCHA,
"LaunchShortcutB":KEY_LAUNCHB,
"LaunchShortcutC":KEY_LAUNCHC,
"LaunchShortcutD":KEY_LAUNCHD,
"LaunchShortcutE":KEY_LAUNCHE,
"LaunchShortcutF":KEY_LAUNCHF,
"Unknown":KEY_UNKNOWN,
"Space":KEY_SPACE,
"!":KEY_EXCLAM,
"\"":KEY_QUOTEDBL,
"#":KEY_NUMBERSIGN,
"$":KEY_DOLLAR,
"%":KEY_PERCENT,
"&":KEY_AMPERSAND,
"'":KEY_APOSTROPHE,
"(":KEY_PARENLEFT,
")":KEY_PARENRIGHT,
"*":KEY_ASTERISK,
"+":KEY_PLUS,
",":KEY_COMMA,
"-":KEY_MINUS,
".":KEY_PERIOD,
"/":KEY_SLASH,
"0":KEY_0,
"1":KEY_1,
"2":KEY_2,
"3":KEY_3,
"4":KEY_4,
"5":KEY_5,
"6":KEY_6,
"7":KEY_7,
"8":KEY_8,
"9":KEY_9,
":":KEY_COLON,
";":KEY_SEMICOLON,
"<":KEY_LESS,
"=":KEY_EQUAL,
">":KEY_GREATER,
"?":KEY_QUESTION,
"@":KEY_AT,
"A":KEY_A,
"B":KEY_B,
"C":KEY_C,
"D":KEY_D,
"E":KEY_E,
"F":KEY_F,
"G":KEY_G,
"H":KEY_H,
"I":KEY_I,
"J":KEY_J,
"K":KEY_K,
"L":KEY_L,
"M":KEY_M,
"N":KEY_N,
"O":KEY_O,
"P":KEY_P,
"Q":KEY_Q,
"R":KEY_R,
"S":KEY_S,
"T":KEY_T,
"U":KEY_U,
"V":KEY_V,
"W":KEY_W,
"X":KEY_X,
"Y":KEY_Y,
"Z":KEY_Z,
"[":KEY_BRACKETLEFT,
"\\":KEY_BACKSLASH,
"]":KEY_BRACKETRIGHT,
"^":KEY_ASCIICIRCUM,
"_":KEY_UNDERSCORE,
"LeftQuote":KEY_QUOTELEFT,
"{":KEY_BRACELEFT,
"|":KEY_BAR,
"}":KEY_BRACERIGHT,
"~":KEY_ASCIITILDE,
#"NoBreakSpace":160,
#"ExcalmDown":161,
#"¢":162,
#"Sterling":163,
#"Currency":164,
"Yen":KEY_YEN,
#"¦":166,
"§":KEY_SECTION,
"¨":168,
"©":169,
"Feminine":170,
"«":171,
"»":172,
"":173,
"®":174,
"Macron":175,
"°":176,
"±":177,
"²":178,
"³":179,
"´":180,
"µ":181,
"Paragraph":182,
"·":183,
"¬":184,
"¹":185,
"":186,
"GuillemotRight":187,
"¼":188,
"½":189,
"¾":190,
"¿":191,
"à":192,
"á":193,
"â":194,
"ã":195,
"ä":196,
"å":197,
"æ":198,
"ç":199,
"è":200,
"é":201,
"ê":202,
"ë":203,
"ì":204,
"í":205,
"î":206,
"Idiaeresis":207,
"ð":208,
"ñ":209,
"ò":210,
"ó":211,
"ô":212,
"õ":213,
"ö":214,
"×":215,
"ø":216,
"ù":217,
"ú":218,
"û":219,
"ü":220,
"ý":221,
"þ":222,
"ß":223,
"÷":247,
"ÿ":255,
}
# ##########
# lowercase characters are represented by an offset of +=32 from the original "uppercase" code
# this list defines all lowercase-valid characters
# ##########
var key_array_lowercase = [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
"à",
"á",
"â",
"ã",
"ä",
"å",
"æ",
"ç",
"è",
"é",
"ê",
"ë",
"ì",
"í",
"î",
"ð",
"ñ",
"ò",
"ó",
"ô",
"õ",
"ö",
"ø",
"ù",
"ú",
"û",
"ü",
"ý",
"ÿ"
]
func has_lowercase(name):
for key in key_array_lowercase:
if key == name:
return true
return false
func get_key_from_string(name, debug=false):
if key_list.has(str(name)):
if debug:
print("Scancode OK:"+name)
return key_list.get(str(name))
else:
if debug:
print("Scancode Key not found:"+ name)
return 0

View File

@@ -0,0 +1 @@
uid://dv77n0ej8igqd

View File

@@ -0,0 +1,470 @@
@tool
extends PanelContainer
###########################
## SETTINGS
###########################
@export var auto_show:bool = true
@export var animate:bool = true
@export_file var custom_layout_file
@export var set_tool_tip := true
@export_group("Style")
@export var separation:Vector2i = Vector2i(0,0)
var style_background:StyleBoxFlat = null
@export var background:StyleBoxFlat = null:
set(new_val):
style_background = new_val
background = new_val
get:
return style_background
var style_normal:StyleBoxFlat = null
@export var normal:StyleBoxFlat = null:
set(new_val):
style_normal = new_val
normal = new_val
get:
return style_normal
var style_hover:StyleBoxFlat = null
@export var hover:StyleBoxFlat = null:
set(new_val):
style_hover = new_val
hover = new_val
get:
return style_hover
var style_pressed:StyleBoxFlat = null
@export var pressed:StyleBoxFlat = null:
set(new_val):
style_pressed = new_val
pressed = new_val
get:
return style_pressed
var style_special_keys:StyleBoxFlat = null
@export var special_keys:StyleBoxFlat = null:
set(new_val):
style_special_keys = new_val
special_keys = new_val
get:
return style_special_keys
@export_group("Font")
@export var font:FontFile
@export var font_size:int = 20
@export var font_color_normal:Color = Color(1,1,1)
@export var font_color_hover:Color = Color(1,1,1)
@export var font_color_pressed:Color = Color(1,1,1)
###########################
## SIGNALS
###########################
signal layout_changed
###########################
## PANEL
###########################
func _enter_tree():
if not get_tree().get_root().size_changed.is_connected(size_changed):
get_tree().get_root().size_changed.connect(size_changed)
_init_keyboard()
#func _exit_tree():
# pass
#func _process(delta):
# pass
func _input(event):
_update_auto_display_on_input(event)
func size_changed():
if auto_show and visible:
_hide_keyboard()
###########################
## INIT
###########################
var KeyboardButton
var KeyListHandler
var layouts = []
var keys = []
var capslock_keys = []
var uppercase = false
var tween_position
var tween_speed = .2
var hide_position = Vector2()
func _init_keyboard():
if custom_layout_file == null:
var default_layout = preload("default_layout.gd").new()
_create_keyboard(default_layout.data)
else:
_create_keyboard(_load_json(custom_layout_file))
# init positioning without animation
var tmp_anim = animate
animate = false
if visible:
_hide_keyboard()
elif visible:
_show_keyboard()
animate = tmp_anim
###########################
## HIDE/SHOW
###########################
var focus_object = null
func show():
_show_keyboard()
func hide():
_hide_keyboard()
var released = true
func _update_auto_display_on_input(event):
if auto_show == false:
return
if event is InputEventMouseButton:
released = !released
if released == false:
return
var focus_object = get_viewport().gui_get_focus_owner()
if focus_object != null:
var click_on_input = Rect2(focus_object.global_position, focus_object.size).has_point(get_global_mouse_position())
var click_on_keyboard = Rect2(global_position, size).has_point(get_global_mouse_position())
if click_on_input:
if is_keyboard_focus_object(focus_object):
_show_keyboard()
elif click_on_keyboard:
_show_keyboard()
else:
_hide_keyboard()
if event is InputEventKey:
var focus_object = get_viewport().gui_get_focus_owner()
if focus_object != null:
if event.keycode == KEY_ENTER:
if is_keyboard_focus_object_complete_on_enter(focus_object):
focus_object.release_focus()
_hide_keyboard()
func _hide_keyboard(key_data=null):
if animate:
var new_y_pos = get_viewport().get_visible_rect().size.y + 10
animate_position(Vector2(position.x, new_y_pos), true)
else:
change_visibility(false)
func _show_keyboard(key_data=null):
change_visibility(true)
if animate:
var new_y_pos = get_viewport().get_visible_rect().size.y - size.y
animate_position(Vector2(position.x, new_y_pos))
func animate_position(new_position, trigger_visibility:bool=false):
var tween = get_tree().create_tween()
if trigger_visibility:
tween.finished.connect(change_visibility.bind(!visible))
tween.tween_property(
self,"position",
Vector2(new_position),
tween_speed
).set_trans(Tween.TRANS_SINE)
func change_visibility(value):
if value:
super.show()
else:
_set_caps_lock(false)
super.hide()
visibility_changed.emit()
###########################
## KEY LAYOUT
###########################
var prev_prev_layout = null
var previous_layout = null
var current_layout = null
func set_active_layout_by_name(name):
for layout in layouts:
if layout.get_meta("layout_name") == str(name):
_show_layout(layout)
else:
_hide_layout(layout)
func _show_layout(layout):
layout.show()
current_layout = layout
func _hide_layout(layout):
layout.hide()
func _switch_layout(key_data):
prev_prev_layout = previous_layout
previous_layout = current_layout
layout_changed.emit(key_data.get("layout-name"))
for layout in layouts:
_hide_layout(layout)
if key_data.get("layout-name") == "PREVIOUS-LAYOUT":
if prev_prev_layout != null:
_show_layout(prev_prev_layout)
return
for layout in layouts:
if layout.get_meta("layout_name") == key_data.get("layout-name"):
_show_layout(layout)
return
_set_caps_lock(false)
###########################
## KEY EVENTS
###########################
func _set_caps_lock(value: bool):
uppercase = value
for key in capslock_keys:
if value:
if key.get_draw_mode() != BaseButton.DRAW_PRESSED:
key.button_pressed = !key.button_pressed
else:
if key.get_draw_mode() == BaseButton.DRAW_PRESSED:
key.button_pressed = !key.button_pressed
for key in keys:
key.change_uppercase(value)
func _trigger_uppercase(key_data):
uppercase = !uppercase
_set_caps_lock(uppercase)
func _key_released(key_data):
if key_data.has("output"):
var key_value = key_data.get("output")
###########################
## DISPATCH InputEvent
###########################
var input_event_key = InputEventKey.new()
input_event_key.shift_pressed = uppercase
input_event_key.alt_pressed = false
input_event_key.meta_pressed = false
input_event_key.ctrl_pressed = false
input_event_key.pressed = true
var key = KeyListHandler.get_key_from_string(key_value)
if !uppercase && KeyListHandler.has_lowercase(key_value):
key +=32
input_event_key.keycode = key
input_event_key.unicode = key
Input.parse_input_event(input_event_key)
###########################
## DISABLE CAPSLOCK AFTER
###########################
_set_caps_lock(false)
###########################
## CONSTRUCT KEYBOARD
###########################
func _set_key_style(style_name:String, key: Control, style:StyleBoxFlat):
if style != null:
key.add_theme_stylebox_override(style_name, style)
func _create_keyboard(layout_data):
if layout_data == null:
print("ERROR. No layout file found")
return
KeyListHandler = preload("keylist.gd").new()
KeyboardButton = preload("keyboard_button.gd")
var ICON_DELETE = preload("icons/delete.png")
var ICON_SHIFT = preload("icons/shift.png")
var ICON_LEFT = preload("icons/left.png")
var ICON_RIGHT = preload("icons/right.png")
var ICON_HIDE = preload("icons/hide.png")
var ICON_ENTER = preload("icons/enter.png")
var data = layout_data
if style_background != null:
add_theme_stylebox_override('panel', style_background)
var index = 0
for layout in data.get("layouts"):
var layout_container = PanelContainer.new()
if style_background != null:
layout_container.add_theme_stylebox_override('panel', style_background)
# SHOW FIRST LAYOUT ON DEFAULT
if index > 0:
layout_container.hide()
else:
current_layout = layout_container
var layout_name = layout.get("name")
layout_container.set_meta("layout_name", layout_name)
if set_tool_tip:
layout_container.tooltip_text = layout_name
layouts.push_back(layout_container)
add_child(layout_container)
var base_vbox = VBoxContainer.new()
base_vbox.size_flags_horizontal = SIZE_EXPAND_FILL
base_vbox.size_flags_vertical = SIZE_EXPAND_FILL
# theme override for spacing
base_vbox.add_theme_constant_override("separation", separation.y)
for row in layout.get("rows"):
var key_row = HBoxContainer.new()
key_row.size_flags_horizontal = SIZE_EXPAND_FILL
key_row.size_flags_vertical = SIZE_EXPAND_FILL
key_row.add_theme_constant_override("separation", separation.x)
for key in row.get("keys"):
var new_key = KeyboardButton.new(key)
_set_key_style("normal",new_key, style_normal)
_set_key_style("hover",new_key, style_hover)
_set_key_style("pressed",new_key, style_pressed)
new_key.set('theme_override_font_sizes/font_size', font_size)
if font != null:
new_key.set('theme_override_fonts/font', font)
if font_color_normal != null:
new_key.set('theme_override_colors/font_color', font_color_normal)
new_key.set('theme_override_colors/font_hover_color', font_color_hover)
new_key.set('theme_override_colors/font_pressed_color', font_color_pressed)
new_key.set('theme_override_colors/font_disabled_color', font_color_normal)
new_key.released.connect(_key_released)
if key.has("type"):
if key.get("type") == "switch-layout":
new_key.released.connect(_switch_layout)
_set_key_style("normal",new_key, style_special_keys)
elif key.get("type") == "special":
_set_key_style("normal",new_key, style_special_keys)
elif key.get("type") == "special-shift":
new_key.released.connect(_trigger_uppercase)
new_key.toggle_mode = true
capslock_keys.push_back(new_key)
_set_key_style("normal",new_key, style_special_keys)
elif key.get("type") == "special-hide-keyboard":
new_key.released.connect(_hide_keyboard)
_set_key_style("normal",new_key, style_special_keys)
# SET ICONS
if key.has("display-icon"):
var icon_data = str(key.get("display-icon")).split(":")
# PREDEFINED
if str(icon_data[0])=="PREDEFINED":
if str(icon_data[1])=="DELETE":
new_key.set_icon(ICON_DELETE)
elif str(icon_data[1])=="SHIFT":
new_key.set_icon(ICON_SHIFT)
elif str(icon_data[1])=="LEFT":
new_key.set_icon(ICON_LEFT)
elif str(icon_data[1])=="RIGHT":
new_key.set_icon(ICON_RIGHT)
elif str(icon_data[1])=="HIDE":
new_key.set_icon(ICON_HIDE)
elif str(icon_data[1])=="ENTER":
new_key.set_icon(ICON_ENTER)
# CUSTOM
if str(icon_data[0])=="res":
var texture = load(key.get("display-icon"))
new_key.set_icon(texture)
if font_color_normal != null:
new_key.set_icon_color(font_color_normal)
key_row.add_child(new_key)
keys.push_back(new_key)
base_vbox.add_child(key_row)
layout_container.add_child(base_vbox)
index+=1
###########################
## LOAD SETTINGS
###########################
func _load_json(file_path) -> Variant:
var json = JSON.new()
var json_string = _load_file(file_path)
var error = json.parse(json_string)
if error == OK:
var data_received = json.data
# print(data_received)
if typeof(data_received) == TYPE_DICTIONARY:
return data_received
else:
return {"msg": "unexpected data => expected DICTIONARY"}
else:
print("JSON Parse Error: ", json.get_error_message(), " in ", json_string, " at line ", json.get_error_line())
return {"msg":json.get_error_message()}
func _load_file(file_path):
var file = FileAccess.open(file_path, FileAccess.READ)
if not file:
print("Error loading File. Error: ")
var content = file.get_as_text()
file.close()
return content
###########################
## HELPER
###########################
func is_keyboard_focus_object_complete_on_enter(focus_object):
if focus_object is LineEdit:
return true
return false
func is_keyboard_focus_object(focus_object):
if focus_object is LineEdit or focus_object is TextEdit:
return true
return false

View File

@@ -0,0 +1 @@
uid://ddxnad3eeveng

View File

@@ -0,0 +1,7 @@
[plugin]
name="Onscreen Keyboard"
description="Display a custom onscreen keyboard (Godot 4)"
author="Tweaklab AG"
version="2.0.0"
script="plugin_node.gd"

View File

@@ -0,0 +1,17 @@
@tool
extends EditorPlugin
func _enter_tree():
# Initialization of the plugin goes here
# Add the new type with a name, a parent type, a script and an icon
add_custom_type(
"OnscreenKeyboard",
"PanelContainer",
preload("onscreen_keyboard.gd"),
preload("icon.png")
)
func _exit_tree():
# Clean-up of the plugin goes here
# Always remember to remove it from the engine when deactivated
remove_custom_type("OnscreenKeyboard")

View File

@@ -0,0 +1 @@
uid://bafmf1ppjtx58