2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

Update input.lua

This commit is contained in:
Markismus 2014-06-01 15:21:40 +02:00
parent 9d976f560f
commit 55cb11f3f1

View File

@ -313,6 +313,12 @@ function Input:init()
end
return ev
end
DEBUG("Auto-detected Kindle Touch")
elseif Device:isKobo() then
local firm_rev = Device:getFirmVer()
input.open("/dev/input/event1")
Device:setTouchInputDev("/dev/input/event1")
input.open("/dev/input/event0") -- Light button and sleep slider
DEBUG("Auto-detected Kobo")
DEBUG("Device model=", dev_mod)
DEBUG("Firmware revision", firm_rev)