mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
minor: do not double log key input event
This commit is contained in:
committed by
Frans de Jonge
parent
7241575f42
commit
597beab616
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user