abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Emoji.java
diff options
context:
space:
mode:
authorJules Aguillon2022-06-05 18:14:50 +0200
committerJules Aguillon2022-06-05 18:14:50 +0200
commitcc571ea1ca6e583024f9295b131ec199aa66cfd8 (patch)
tree3e7ec66fb926b8e0b2e29e13f34dd656cc17d55a /srcs/juloo.keyboard2/Emoji.java
parentc1a816d3d41218b5b4bdaa80db01898e3a25ded2 (diff)
downloadunexpected-keyboard-cc571ea1ca6e583024f9295b131ec199aa66cfd8.tar.gz
unexpected-keyboard-cc571ea1ca6e583024f9295b131ec199aa66cfd8.zip
Refactor: Merge KeyValue.char and code fields
These two fields couldn't have an interesting value at the same time. As we can no longer rely on a special value to distinguish between what's the kind, the kind of the key is explicitly encoded in the two most significative bits of the _flags field. Extra nice thing: This removes the special values 'EVENT_NONE' and 'CHAR_NONE'.
Diffstat (limited to 'srcs/juloo.keyboard2/Emoji.java')
-rw-r--r--srcs/juloo.keyboard2/Emoji.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Emoji.java b/srcs/juloo.keyboard2/Emoji.java
index e8ee8a1..b75069d 100644
--- a/srcs/juloo.keyboard2/Emoji.java
+++ b/srcs/juloo.keyboard2/Emoji.java
@@ -16,7 +16,7 @@ public class Emoji extends KeyValue
protected Emoji(String name, String bytecode, String desc)
{
- super(name, bytecode, CHAR_NONE, EVENT_NONE, 0);
+ super(name, bytecode, KIND_STRING, 0, 0);
_desc = desc;
emojis_by_name.put(name, this);
}