refactor: move mode.event_handler back to input mode

This commit is contained in:
CJ van den Berg 2024-10-27 18:53:24 +01:00
parent d06ebd0dd5
commit 525287c7ac
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
22 changed files with 47 additions and 51 deletions

View file

@ -8,10 +8,8 @@ const EventHandler = @import("EventHandler");
const Allocator = @import("std").mem.Allocator;
const fmt = @import("std").fmt;
const Mode = @import("../root.zig").Mode;
pub fn create(_: Allocator) error{OutOfMemory}!Mode {
return .{ .handler = EventHandler.static(@This()) };
pub fn create(_: Allocator) EventHandler {
return EventHandler.static(@This());
}
pub fn receive(_: tp.pid_ref, m: tp.message) error{Exit}!bool {