import type { StructInit } from "@yume-chan/struct"; import { struct, u32, u8 } from "@yume-chan/struct"; import type { AndroidKeyCode, AndroidKeyEventAction, AndroidKeyEventMeta, } from "../android/index.js"; import { ScrcpyControlMessageType } from "../base/index.js"; export const ScrcpyInjectKeyCodeControlMessage = /* #__PURE__ */ (() => struct( { type: u8(ScrcpyControlMessageType.InjectKeyCode), action: u8(), keyCode: u32(), repeat: u32, metaState: u32(), }, { littleEndian: false }, ))(); export type ScrcpyInjectKeyCodeControlMessage = StructInit< typeof ScrcpyInjectKeyCodeControlMessage >;