From cc571ea1ca6e583024f9295b131ec199aa66cfd8 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 5 Jun 2022 18:14:50 +0200 Subject: 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'. --- srcs/juloo.keyboard2/Pointers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/Pointers.java') 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); -- cgit v1.2.3