@yume-chan/scrcpy
Version:
TypeScript implementation of Scrcpy client.
14 lines (10 loc) • 431 B
text/typescript
import type { StructInit } from "@yume-chan/struct";
import { struct, u8 } from "@yume-chan/struct";
import type { AndroidScreenPowerMode } from "../android/index.js";
export const ScrcpySetDisplayPowerControlMessage = struct(
{ type: u8, mode: u8<AndroidScreenPowerMode>() },
{ littleEndian: false },
);
export type ScrcpySetScreenPowerModeControlMessage = StructInit<
typeof ScrcpySetDisplayPowerControlMessage
>;