From 4127aa6f033a258aa89ff3704a952505c8c056cb Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 5 Jun 2022 01:38:42 +0200 Subject: Stop using flags for modifiers There was no free bits left to add new modifiers. Instead of increasing the width of the 'flags' field, refactor the way modifiers are represented and used. Modifers are now represented as independent values and stored in the 'code' field. A flag is added to distinguish between modifiers and keys with a key event. The most notable change is that modifiers can no longer be or-ed into a single value but have to be represented as an array. --- srcs/juloo.keyboard2/EmojiKeyButton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/EmojiKeyButton.java') diff --git a/srcs/juloo.keyboard2/EmojiKeyButton.java b/srcs/juloo.keyboard2/EmojiKeyButton.java index 51ff14f..1f5a3a0 100644 --- a/srcs/juloo.keyboard2/EmojiKeyButton.java +++ b/srcs/juloo.keyboard2/EmojiKeyButton.java @@ -23,6 +23,6 @@ public class EmojiKeyButton extends Button public void onClick(View v) { Config config = Config.globalConfig(); - config.handler.handleKeyUp(_key, 0); + config.handler.handleKeyUp(_key, Pointers.Modifiers.EMPTY); } } -- cgit v1.2.3