fix: remove thespian from win32 renderer module

This commit is contained in:
CJ van den Berg 2025-01-04 15:24:36 +01:00
parent 9047439315
commit 7bfb9a2216
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 34 additions and 32 deletions

View file

@ -150,7 +150,7 @@ pub fn process_renderer_event(self: *Self, msg: []const u8) !void {
var input_: []const u8 = undefined;
var text_: []const u8 = undefined;
if (!try cbor.match(msg, .{ "RDR", cbor.extract(&input_), cbor.extract(&text_) }))
return error.InvalidRendererEvent;
return error.UnexpectedRendererEvent;
const text = if (text_.len > 0) text_ else null;
const event = std.mem.bytesAsValue(vaxis.Event, input_);
switch (event.*) {