abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2
diff options
context:
space:
mode:
authorJules Aguillon2022-11-26 17:22:31 +0100
committerJules Aguillon2022-11-26 17:22:31 +0100
commit122a9c23d01eaf8c65d7c72f5976049d25c3093a (patch)
treeeb69d440ecf1fb0ddb9edbed67c791543856f782 /srcs/juloo.keyboard2
parent6fb15b3f16a2d1976aae6828ba4d07087e74acf0 (diff)
downloadunexpected-keyboard-122a9c23d01eaf8c65d7c72f5976049d25c3093a.tar.gz
unexpected-keyboard-122a9c23d01eaf8c65d7c72f5976049d25c3093a.zip
Make fake pointers not lockable
Especially annoying now that modifiers are not locked by a double tap.
Diffstat (limited to 'srcs/juloo.keyboard2')
-rw-r--r--srcs/juloo.keyboard2/Pointers.java6
1 files 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);
}