diff options
| author | Jules Aguillon | 2022-06-05 18:14:50 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-06-05 18:14:50 +0200 |
| commit | cc571ea1ca6e583024f9295b131ec199aa66cfd8 (patch) | |
| tree | 3e7ec66fb926b8e0b2e29e13f34dd656cc17d55a /srcs/juloo.keyboard2/Pointers.java | |
| parent | c1a816d3d41218b5b4bdaa80db01898e3a25ded2 (diff) | |
| download | unexpected-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/Pointers.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Pointers.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Pointers.java b/srcs/juloo.keyboard2/Pointers.java index 6a9cef9..b26616e 100644 --- a/srcs/juloo.keyboard2/Pointers.java +++ b/srcs/juloo.keyboard2/Pointers.java @@ -407,7 +407,7 @@ public final class Pointers implements Handler.Callback protected static Modifiers ofArray(int[] mods) { int size = mods.length; - // Sort and remove duplicates and [EVENT_NONE]s. + // Sort and remove duplicates and [0]s. if (size > 1) { Arrays.sort(mods); |
