iOS porting: Glanceboard wake gestures

This commit is contained in:
James Babcock committed 2026-09-17 23:50:14 -07:00
1 parent 6b2e0375e6
commit 14fbbe66ff
6 files changed
+263 -12

No files matched your search

+5
View File
@@ -87,6 +87,11 @@ test('ring and arm input decoders preserve gesture and source', () => {
const payload = p.bytes(13, p.bytes(3, p.concat(p.integer(1, 9), p.integer(2, 3))));
assert.equal(p.decodeGlassesInput({ sid: 224, flag: 1, payload }).eventSource, 3);
assert.equal(p.decodeGlassesInput({ sid: 224, flag: 32, payload }), null);
const headUp = p.bytes(13, p.bytes(3, p.concat(p.integer(1, 12), p.integer(2, 1))));
const wake = p.decodeGlassesInput({ sid: 224, flag: 1, payload: headUp });
assert.equal(wake.kind, 'display-wake');
assert.equal(wake.eventType, 12);
assert.equal(wake.eventSource, 1);
});
class FakeTransport {