Commit b0a583ad authored by Jimmy HUGUET's avatar Jimmy HUGUET

improve loopen moves and add numbers

parent 0a5ecefe
......@@ -165,7 +165,13 @@ Item {
"upright-up": "300-right"}
function processInput() {
if (moveSerie[0] === "center") {
if (moveSerie.length >= 8 && moveSerie[moveSerie.length - 1] !== "center") {
if (selection.indexOf("left") !== -1) {
numActive = !numActive
} else {
specialActive = !specialActive
}
} else if (moveSerie[0] === "center") {
if (moveSerie.length >= 3 && moveSerie.length < 7) {
var hand = centerLetterMove[mapInput[moveSerie[1] + "-" + moveSerie[2]]]
var letter = hand[(moveSerie.length - 3) % 4]
......@@ -327,8 +333,8 @@ Item {
implicitWidth: shiftKeyWidth
background.visible: false
anchors.centerIn: parent
anchors.verticalCenterOffset: - parent.height / 2 + height
anchors.horizontalCenterOffset: parent.height / 2 - height
anchors.verticalCenterOffset: - parent.height / 2 + height * 0.5
anchors.horizontalCenterOffset: parent.height / 2
property bool pressed: false
......@@ -363,6 +369,29 @@ Item {
}
}
FunctionKey {
id:specialKey
repeat: true
key: Qt.Key_Backspace
height: width * 0.6
implicitWidth: shiftKeyWidth
background.visible: true
anchors.centerIn: parent
anchors.verticalCenterOffset: - parent.height / 2 - height * 0.5
anchors.horizontalCenterOffset: parent.height / 2
property bool pressed: false
MultiPointTouchArea {
anchors.fill: backspaceKey
maximumTouchPoints: 1
onReleased: {
}
}
}
SpacebarKey {
height: backspaceKey.height
implicitWidth: shiftKeyWidth
......
......@@ -58,18 +58,18 @@ Keyboard12PenLayout {
}
numCaption:
{
"0-left": ["a", "m", "y",],
"0-right": ["b", "n", "z"],
"60-left": ["c", "o", "."],
"60-right": ["d", "p", "?"],
"120-left": ["e", "q", "!"],
"120-right": ["f", "r", ","],
"180-left": ["g", "s", ";",],
"180-right": ["h", "t", ":"],
"240-left": ["i", "u", "'"],
"240-right": ["j", "v", "("],
"300-left": ["k", "w", ")"],
"300-right": ["l", "x", "$"]
"0-left": ["4", "^", "§"],
"0-right": ["5", "é", ""],
"60-left": ["6", "/", "],
"60-right": ["7", "$", "],
"120-left": ["8", "=", "%"],
"120-right": ["9", "*", "&"],
"180-left": [">", "}", "]",],
"180-right": ["<", "{", "["],
"240-left": ["0", "+", "<"],
"240-right": ["1", "-", "_"],
"300-left": ["2", "*", "#"],
"300-right": ["3", "/", "\\"]
}
specialCaption:
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment