Rename event.type_() to .kind()
This commit is contained in:
parent
ecd398d685
commit
d7b69fafdd
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue