forked from extern/Unexpected-Keyboard
Make fake pointers not lockable
Especially annoying now that modifiers are not locked by a double tap.
This commit is contained in:
parent
6fb15b3f16
commit
122a9c23d0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user