mirror of
https://github.com/koreader/koreader
synced 2024-11-16 06:12:56 +00:00
parent
e06bff8450
commit
b6432c0305
2
base
2
base
@ -1 +1 @@
|
||||
Subproject commit 6468c14a3bdd1ef2db2cf9548443abb0cd2b3991
|
||||
Subproject commit a3472f833ad47a74e417d752a36d7ba694a4f08c
|
@ -49,6 +49,10 @@ function Device:init()
|
||||
self.powerd = require("device/generic/powerd"):new{device = self}
|
||||
end
|
||||
|
||||
if self.has_fake_events then
|
||||
self.input.open("fake_events")
|
||||
end
|
||||
|
||||
if self.viewport then
|
||||
self.screen:setViewport(self.viewport)
|
||||
self.input:registerEventAdjustHook(
|
||||
|
@ -35,6 +35,7 @@ local KindleTouch = Kindle:new{
|
||||
model = "KindleTouch",
|
||||
isTouchDevice = yes,
|
||||
touch_dev = "/dev/input/event3",
|
||||
has_fake_events = true,
|
||||
}
|
||||
|
||||
local KindlePaperWhite = Kindle:new{
|
||||
@ -43,6 +44,7 @@ local KindlePaperWhite = Kindle:new{
|
||||
hasFrontlight = yes,
|
||||
display_dpi = 212,
|
||||
touch_dev = "/dev/input/event0",
|
||||
has_fake_events = true,
|
||||
}
|
||||
|
||||
local KindlePaperWhite2 = Kindle:new{
|
||||
@ -51,6 +53,7 @@ local KindlePaperWhite2 = Kindle:new{
|
||||
hasFrontlight = yes,
|
||||
display_dpi = 212,
|
||||
touch_dev = "/dev/input/event1",
|
||||
has_fake_events = true,
|
||||
}
|
||||
|
||||
local KindleBasic = Kindle:new{
|
||||
@ -58,6 +61,7 @@ local KindleBasic = Kindle:new{
|
||||
isTouchDevice = yes,
|
||||
-- FIXME!
|
||||
touch_dev = "/dev/input/event0",
|
||||
has_fake_events = true,
|
||||
}
|
||||
|
||||
local KindleVoyage = Kindle:new{
|
||||
@ -66,6 +70,7 @@ local KindleVoyage = Kindle:new{
|
||||
hasFrontlight = yes,
|
||||
display_dpi = 300,
|
||||
touch_dev = "/dev/input/event1",
|
||||
has_fake_events = true,
|
||||
}
|
||||
|
||||
function Kindle2:init()
|
||||
|
Loading…
Reference in New Issue
Block a user