Skip to content

Commit 5939d7b

Browse files
committed
updated for changes in lpugl caused by interface changes in upstream merges
1 parent 614fe71 commit 5939d7b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/lwtk/Application.lua

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ end
8181
function Application:runEventLoop()
8282
local world = self.world
8383
while world:hasViews() do
84-
local hasEvents = world:pollEvents()
85-
if hasEvents then
86-
world:dispatchEvents()
87-
end
84+
world:update()
8885
if not isClosed[self] then
8986
self:_processAllChanges()
9087
end
@@ -181,11 +178,11 @@ function Application:_createClosures()
181178
window:_handleConfigure(...)
182179
elseif event == "EXPOSE" then
183180
window:_handleExpose(...)
184-
elseif event == "MOTION_NOTIFY" then
181+
elseif event == "MOTION" then
185182
window:_handleMouseMove(...)
186-
elseif event == "LEAVE_NOTIFY" then
183+
elseif event == "POINTER_OUT" then
187184
window:_handleMouseLeave(...)
188-
elseif event == "ENTER_NOTIFY" then
185+
elseif event == "POINTER_IN" then
189186
window:_handleMouseEnter(...)
190187
elseif event == "KEY_PRESS" then
191188
window:_handleKeyDown(...)

0 commit comments

Comments
 (0)