File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 8181function 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 (... )
You can’t perform that action at this time.
0 commit comments