Fix input devices on K3.

re #1623
pull/1622/head
NiLuJe 9 years ago
parent e56d30ff46
commit 53e5366e39

@ -20,7 +20,7 @@ local KindleDXG = Kindle:new{
hasKeys = yes, hasKeys = yes,
} }
local Kindle3 = Kindle2:new{ local Kindle3 = Kindle:new{
model = "Kindle3", model = "Kindle3",
hasKeyboard = yes, hasKeyboard = yes,
hasKeys = yes, hasKeys = yes,
@ -104,8 +104,8 @@ function Kindle3:init()
device = self, device = self,
event_map = require("device/kindle/event_map_keyboard"), event_map = require("device/kindle/event_map_keyboard"),
} }
self.input.open("/dev/input/event0")
self.input.open("/dev/input/event1") self.input.open("/dev/input/event1")
self.input.open("/dev/input/event2")
Kindle.init(self) Kindle.init(self)
end end
@ -115,7 +115,6 @@ function Kindle4:init()
device = self, device = self,
event_map = require("device/kindle/event_map_kindle4"), event_map = require("device/kindle/event_map_kindle4"),
} }
self.input.event_map = require("device/kindle/event_map_kindle4")
self.input.open("/dev/input/event1") self.input.open("/dev/input/event1")
Kindle.init(self) Kindle.init(self)
end end

Loading…
Cancel
Save