mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
chore: disable wrong usbplug event handler
This commit is contained in:
@@ -130,13 +130,6 @@ function Kobo:init()
|
||||
return "Light"
|
||||
end
|
||||
end,
|
||||
[330] = function(ev)
|
||||
if self.input:isEvKeyPress(ev) then
|
||||
return "USBPlugIn"
|
||||
else
|
||||
return "USBPlugOut"
|
||||
end
|
||||
end,
|
||||
[102] = "Home",
|
||||
[116] = "Power",
|
||||
}
|
||||
@@ -144,6 +137,7 @@ function Kobo:init()
|
||||
|
||||
Generic.init(self)
|
||||
|
||||
-- event2 is for MMA7660 sensor (3-Axis Orientation/Motion Detection)
|
||||
self.input.open("/dev/input/event0") -- Light button and sleep slider
|
||||
self.input.open("/dev/input/event1")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user