Update @call to latest API
This commit is contained in:
parent
7265089f7c
commit
81d24ea62d
|
@ -13,5 +13,5 @@ pub fn init(scancode: SDL.Scancode, callback: *const anyopaque) Self {
|
|||
};
|
||||
}
|
||||
pub fn call(self: Self, state: anytype) void {
|
||||
@call(.{}, @ptrCast(*const fn (@TypeOf(state)) void, self.callback), .{state});
|
||||
@call(.auto, @ptrCast(*const fn (@TypeOf(state)) void, self.callback), .{state});
|
||||
}
|
||||
|
|
|
@ -169,7 +169,7 @@ fn actionSelUp(self: *Self) void {
|
|||
|
||||
fn actionSelect(self: *Self) void {
|
||||
const action = self.getSel(0).action;
|
||||
@call(.{}, action, .{self});
|
||||
@call(.auto, action, .{self});
|
||||
}
|
||||
|
||||
fn play(self: *Self) void {
|
||||
|
|
Loading…
Reference in New Issue