diff --git a/library/modules/ui/events.sx b/library/modules/ui/events.sx index bef218a..d593a91 100755 --- a/library/modules/ui/events.sx +++ b/library/modules/ui/events.sx @@ -46,7 +46,7 @@ Event :: enum { } event_position :: (e: *Event) -> ?Point { - if e.* == { + if e == { case .mouse_down: (d) { return d.position; } case .mouse_up: (d) { return d.position; } case .mouse_moved: (d) { return d.position; } @@ -77,7 +77,7 @@ keycode_from_sdl :: (k: SDL_Keycode) -> Keycode { // Translate SDL_Event → our Event type translate_sdl_event :: (sdl: *SDL_Event) -> Event { - if sdl.* == { + if sdl == { case .quit: { return .quit; }