refactor: use the same create interface for all modes
This commit is contained in:
parent
0037695983
commit
ae3d21ad08
13 changed files with 13 additions and 13 deletions
|
@ -5,7 +5,7 @@ const event_type = @import("renderer").input.event_type;
|
|||
const command = @import("command");
|
||||
const EventHandler = @import("EventHandler");
|
||||
|
||||
pub fn create() EventHandler {
|
||||
pub fn create(_: @import("std").mem.Allocator, _: anytype) !EventHandler {
|
||||
return EventHandler.static(@This());
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ const event_type = @import("renderer").input.event_type;
|
|||
const command = @import("command");
|
||||
const EventHandler = @import("EventHandler");
|
||||
|
||||
pub fn create() EventHandler {
|
||||
pub fn create(_: @import("std").mem.Allocator, _: anytype) !EventHandler {
|
||||
return EventHandler.static(@This());
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ const event_type = @import("renderer").input.event_type;
|
|||
const command = @import("command");
|
||||
const EventHandler = @import("EventHandler");
|
||||
|
||||
pub fn create() EventHandler {
|
||||
pub fn create(_: @import("std").mem.Allocator, _: anytype) !EventHandler {
|
||||
return EventHandler.static(@This());
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ const event_type = @import("renderer").input.event_type;
|
|||
const command = @import("command");
|
||||
const EventHandler = @import("EventHandler");
|
||||
|
||||
pub fn create() EventHandler {
|
||||
pub fn create(_: @import("std").mem.Allocator, _: anytype) !EventHandler {
|
||||
return EventHandler.static(@This());
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ const event_type = @import("renderer").input.event_type;
|
|||
const command = @import("command");
|
||||
const EventHandler = @import("EventHandler");
|
||||
|
||||
pub fn create() EventHandler {
|
||||
pub fn create(_: @import("std").mem.Allocator, _: anytype) !EventHandler {
|
||||
return EventHandler.static(@This());
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ const event_type = @import("renderer").input.event_type;
|
|||
const command = @import("command");
|
||||
const EventHandler = @import("EventHandler");
|
||||
|
||||
pub fn create() EventHandler {
|
||||
pub fn create(_: @import("std").mem.Allocator, _: anytype) !EventHandler {
|
||||
return EventHandler.static(@This());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue