mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix spaces
This commit is contained in:
@@ -208,10 +208,10 @@ function Input:adjustTouchTranslate(ev, by)
|
||||
end
|
||||
end
|
||||
function Input:adjustTouchAlyssum(ev)
|
||||
ev.time = TimeVal:now()
|
||||
if ev.type == EV_ABS and ev.code == ABS_MT_TRACKING_ID then
|
||||
ev.value = ev.value - 1
|
||||
end
|
||||
ev.time = TimeVal:now()
|
||||
if ev.type == EV_ABS and ev.code == ABS_MT_TRACKING_ID then
|
||||
ev.value = ev.value - 1
|
||||
end
|
||||
end
|
||||
|
||||
function Input:setTimeout(cb, tv_out)
|
||||
|
||||
@@ -73,8 +73,8 @@ local KoboPhoenix = Kobo:new{
|
||||
local KoboAlyssum = Kobo:new{
|
||||
model = "Kobo_alyssum",
|
||||
hasFrontlight = yes,
|
||||
touch_phoenix_protocol = true,
|
||||
touch_alyssum_protocol = true,
|
||||
touch_phoenix_protocol = true,
|
||||
touch_alyssum_protocol = true,
|
||||
display_dpi = 300,
|
||||
}
|
||||
|
||||
@@ -105,10 +105,10 @@ function Kobo:init()
|
||||
self.screen:getScreenWidth()
|
||||
)
|
||||
end
|
||||
|
||||
if self.touch_alyssum_protocol then
|
||||
self.input:registerEventAdjustHook(self.input.adjustTouchAlyssum)
|
||||
end
|
||||
|
||||
if self.touch_alyssum_protocol then
|
||||
self.input:registerEventAdjustHook(self.input.adjustTouchAlyssum)
|
||||
end
|
||||
|
||||
if self.touch_phoenix_protocol then
|
||||
self.input.handleTouchEv = self.input.handleTouchEvPhoenix
|
||||
@@ -172,7 +172,7 @@ elseif codename == "trilogy" then
|
||||
elseif codename == "pixie" then
|
||||
return KoboPixie
|
||||
elseif codename == "alyssum" then
|
||||
return KoboAlyssum
|
||||
return KoboAlyssum
|
||||
else
|
||||
error("unrecognized Kobo model "..codename)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user