iOS porting: Battery indicators, app icon, add the rest of the apps

This commit is contained in:
James Babcock committed 2026-09-07 10:18:30 -07:00
1 parent 00a5e38f75
commit e5ba7abc18
31 files changed
+501 -65

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
/** Workers send baked grayscale frames to the main-thread iOS compositor. */
const display = {
submitSurfaceFrame(buffer: ArrayBuffer, surfaceId: string, _x: number, _y: number, width: number, height: number): void {
const data = NSData.dataWithBytesLength(interop.handleof(buffer), buffer.byteLength)
global.postMessage({ type: 'surface-frame', surfaceId, width, height, pixels: data.base64EncodedStringWithOptions(0 as NSDataBase64EncodingOptions) })
},
}
export function getActiveDisplay(): typeof display { return display }