diff options
| author | Jules Aguillon | 2022-11-26 17:22:31 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-11-26 17:22:31 +0100 |
| commit | 122a9c23d01eaf8c65d7c72f5976049d25c3093a (patch) | |
| tree | eb69d440ecf1fb0ddb9edbed67c791543856f782 /srcs | |
| parent | 6fb15b3f16a2d1976aae6828ba4d07087e74acf0 (diff) | |
| download | unexpected-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')
| -rw-r--r-- | srcs/juloo.keyboard2/Pointers.java | 6 |
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); } |
