diff --git a/src/sdl.zig b/src/sdl.zig index 0aacbeb..c36f512 100644 --- a/src/sdl.zig +++ b/src/sdl.zig @@ -323,12 +323,12 @@ pub const Event = struct { return Event{ .event = event }; } - pub fn type_(self: Event) EventType { + pub fn kind(self: Event) EventType { return @intToEnum(EventType, self.event.type); } pub fn mouseMotion(self: Event) ?MouseMotionEvent { - if (self.type_() != .MouseMotion) { + if (self.kind() != .MouseMotion) { return null; }