abouttreesummaryrefslogcommitdiff
path: root/res
diff options
context:
space:
mode:
authorJules Aguillon2023-03-03 19:44:05 +0100
committerJules Aguillon2023-03-03 19:44:05 +0100
commita6fe5cae00c58365d3ca261783cc745006b2f117 (patch)
treeea61093d070a147c97114b0326ee2927fe74400b /res
parent1f9e92ed60127baca11cd222a2851d01550bb71c (diff)
downloadunexpected-keyboard-a6fe5cae00c58365d3ca261783cc745006b2f117.tar.gz
unexpected-keyboard-a6fe5cae00c58365d3ca261783cc745006b2f117.zip
Allow 8 symbols per key
'Keyboard.Key' now contains an array of size 9, giving each keyvalue an index. The algorithm for finding the nearest key during a swipe now needs 16 segments, which are now calculated as an angle. The algorithm does one more interation instead of 2 more, slightly reducing the sensitivity of corner values. The 'getAtDirection' function is moved into the Pointers class to clearly separate the two systems. The 'edgekey' attribute is now obsolete but is kept for compatibility. The flag is removed internally, key index are simply translated. Similarly, the 'slider' attribute now act on keys at index 5 and 6 instead of 2 and 3.
Diffstat (limited to 'res')
-rw-r--r--res/xml/qwerty.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/res/xml/qwerty.xml b/res/xml/qwerty.xml
index 87b56f5..4f5245b 100644
--- a/res/xml/qwerty.xml
+++ b/res/xml/qwerty.xml
@@ -1,4 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
+<!-- This file defines the QWERTY layout.
+
+A layout is made of keys arranged into rows. Keys can be made bigger with the
+'width' attribute and blank space can be added on the left of a key with the
+'shift' attribute.
+
+'key0' assigns the symbol on the middle of the key. 'key1', 'key2', etc..
+assign symbols to the corners of a key, they are arranged like this:
+
+ 1 7 2
+ 5 0 6
+ 3 8 4
+
+Keys prefixed with 'loc ' are not visible on the keyboard. They are used to
+specify a place for a key, if it needed to be added to the layout later.
+(for example, by the "Add keys to keyboard" option)
+
+See bottom_row.xml for the definition of the bottom row and neo2.xml for a
+layout that re-defines it.
+See srcs/juloo.keyboard2/KeyValue.java for the keys that have a special meaning.
+-->
<keyboard>
<row>
<key key0="q" key2="1" key4="esc"/>