Skip to content

Commit eef6924

Browse files
authored
[fix] Uncomment accidentally commented out SDL_TOUCH_MOUSEID check in SDL2_0.lua (#1607)
Presumably fairly harmless except in wasted processing because for motion the two are identical or close to it regardless. Noticed in koreader/koreader#10417 (comment)
1 parent 66b2153 commit eef6924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffi/SDL2_0.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ function S.waitForEvent(sec, usec)
366366
genEmuEvent(C.EV_KEY, event.key.keysym.sym, 0)
367367
elseif event.type == SDL.SDL_TEXTINPUT then
368368
genEmuEvent(C.EV_SDL, SDL.SDL_TEXTINPUT, ffi.string(event.text.text))
369-
elseif event.type == SDL.SDL_MOUSEMOTION --and event.motion.which ~= SDL_TOUCH_MOUSEID
369+
elseif event.type == SDL.SDL_MOUSEMOTION and event.motion.which ~= SDL_TOUCH_MOUSEID
370370
or event.type == SDL.SDL_FINGERMOTION then
371371
local is_finger = event.type == SDL.SDL_FINGERMOTION
372372
local slot

0 commit comments

Comments
 (0)