diff --git a/frontend/device/input.lua b/frontend/device/input.lua index 5f152e670..7adcf1d27 100644 --- a/frontend/device/input.lua +++ b/frontend/device/input.lua @@ -594,12 +594,14 @@ function Input:waitEvent(timeout_us) if ok and ev then if DEBUG.is_on and ev then DEBUG:logEv(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)) + logger.dbg(string.format( + "%s event => type: %d, code: %d(%s), value: %d, time: %d.%d", + ev.type == EV_KEY and "key" or "input", + ev.type, ev.code, self.event_map[ev.code], ev.value, + ev.time.sec, ev.time.usec)) end self:eventAdjustHook(ev) if ev.type == EV_KEY then - logger.dbg("key ev", ev) return self:handleKeyBoardEv(ev) elseif ev.type == EV_ABS and ev.code == ABS_OASIS_ORIENTATION then return self:handleOasisOrientationEv(ev)