Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 56756c31 authored by Simon Chan's avatar Simon Chan
Browse files

fix(scrcpy): add missing method

parent d3d5c57f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ import { type TransformStream } from "@yume-chan/stream-extra";
import {
    type ScrcpyBackOrScreenOnControlMessage,
    type ScrcpyControlMessageType,
    type ScrcpySetClipboardControlMessage,
} from "../../control/index.js";
import {
    type ScrcpyOptions,
@@ -60,6 +61,12 @@ export abstract class AdbScrcpyOptionsBase<T extends object>
        return this.raw.serializeBackOrScreenOnControlMessage(message);
    }

    public serializeSetClipboardControlMessage(
        message: ScrcpySetClipboardControlMessage
    ): Uint8Array {
        return this.raw.serializeSetClipboardControlMessage(message);
    }

    public getScrollController() {
        return this.raw.getScrollController();
    }