From d7b69fafdd787f6ecacf48b4b35f0d8e1d4e869e Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Fri, 22 May 2020 22:41:39 +0200 Subject: [PATCH] Rename event.type_() to .kind() --- src/sdl.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }