[chore] Handle SDL_MOUSEWHEEL and less hackish SDL events (#3826)

This commit is contained in:
Frans de Jonge
2018-04-03 14:56:28 +02:00
committed by GitHub
parent 844a2e78ab
commit 7f4be45d4e
4 changed files with 72 additions and 18 deletions

View File

@@ -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()