From 122a9c23d01eaf8c65d7c72f5976049d25c3093a Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 26 Nov 2022 17:22:31 +0100 Subject: [PATCH] Make fake pointers not lockable Especially annoying now that modifiers are not locked by a double tap. --- srcs/juloo.keyboard2/Pointers.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcs/juloo.keyboard2/Pointers.java b/srcs/juloo.keyboard2/Pointers.java index 43906b3..e8dbc87 100644 --- a/srcs/juloo.keyboard2/Pointers.java +++ b/srcs/juloo.keyboard2/Pointers.java @@ -80,10 +80,10 @@ public final class Pointers implements Handler.Callback if (getLatched(key, kv) != null) return; // Already latched, don't add an other pointer. Pointer ptr = new Pointer(-1, key, kv, 0.f, 0.f, Modifiers.EMPTY); - ptr.flags &= ~KeyValue.FLAG_LATCH; - ptr.flags |= KeyValue.FLAG_LOCK | KeyValue.FLAG_FAKE_PTR; + ptr.flags &= ~(KeyValue.FLAG_LATCH | KeyValue.FLAG_LOCK); + ptr.flags |= KeyValue.FLAG_FAKE_PTR; if (locked) - ptr.flags = (ptr.flags & ~KeyValue.FLAG_LOCK) | KeyValue.FLAG_LOCKED; + ptr.flags |= KeyValue.FLAG_LOCKED; _ptrs.add(ptr); }