fix spaces

pull/1527/head
Guangda Hu 9 years ago
parent 69db627136
commit 7491cd7b9d

@ -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

Loading…
Cancel
Save