From 51ff795be419ff5102b262c90371340f76c74f2c Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 20 Feb 2022 13:09:39 +0100 Subject: Move pointer handling code to its own class Separate the concerns and have a clearer interface between the two parts of the code. --- srcs/juloo.keyboard2/KeyValue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'srcs/juloo.keyboard2/KeyValue.java') diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 8ce3cbe..15a3d18 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -17,7 +17,7 @@ class KeyValue public static final char CHAR_NONE = '\0'; // Behavior flags - public static final int FLAG_KEEP_ON = 1; + public static final int FLAG_LATCH = 1; public static final int FLAG_LOCK = (1 << 1); public static final int FLAG_NOREPEAT = (1 << 2); public static final int FLAG_NOCHAR = (1 << 3); @@ -126,7 +126,7 @@ class KeyValue private static void addModifierKey(String name, String symbol, int extra_flags) { addKey(name, symbol, CHAR_NONE, EVENT_NONE, - FLAG_KEEP_ON | FLAG_NOCHAR | FLAG_NOREPEAT | extra_flags); + FLAG_LATCH | FLAG_NOCHAR | FLAG_NOREPEAT | extra_flags); } private static void addSpecialKey(String name, String symbol, int event) -- cgit v1.2.3