mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[chore] Handle SDL_MOUSEWHEEL and less hackish SDL events (#3826)
This commit is contained in:
@@ -83,8 +83,9 @@ function Dbg:v(...)
|
||||
end
|
||||
|
||||
function Dbg:logEv(ev)
|
||||
local ev_value = tostring(ev.value)
|
||||
local log = ev.type.."|"..ev.code.."|"
|
||||
..ev.value.."|"..ev.time.sec.."|"..ev.time.usec.."\n"
|
||||
..ev_value.."|"..ev.time.sec.."|"..ev.time.usec.."\n"
|
||||
if self.ev_log then
|
||||
self.ev_log:write(log)
|
||||
self.ev_log:flush()
|
||||
|
||||
Reference in New Issue
Block a user