chore: make input debug less verbose

pull/2591/head
Qingping Hou 7 years ago committed by Frans de Jonge
parent 819952ca54
commit 77b07255f0

@ -48,6 +48,7 @@ function Dbg:turnOn()
end
end
-- TODO: close ev.log fd for children
-- create or clear ev log file
self.ev_log = io.open("ev.log", "w")
end

@ -594,7 +594,8 @@ function Input:waitEvent(timeout_us)
if ok and ev then
if DEBUG.is_on and ev then
DEBUG:logEv(ev)
logger.dbg("ev", ev)
logger.dbg(string.format("input event => type: %d, code: %d, value: %d, time: %d.%d",
ev.type, ev.code, ev.value, ev.time.sec, ev.time.usec))
end
self:eventAdjustHook(ev)
if ev.type == EV_KEY then

Loading…
Cancel
Save