chore: make input debug less verbose

This commit is contained in:
Qingping Hou
2017-02-20 00:51:54 -08:00
committed by Frans de Jonge
parent 819952ca54
commit 77b07255f0
2 changed files with 3 additions and 1 deletions

View File

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