mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #1684 from chrox/fix_kobo_touch_probe
fix kobo touch probe
This commit is contained in:
@@ -26,10 +26,10 @@ DRENDER_MODE = 0 -- 0 is COLOUR
|
||||
DGLOBAL_CACHE_SIZE_MINIMUM = 1024*1024*10
|
||||
|
||||
-- proportion of system free memory used as global cache
|
||||
DGLOBAL_CACHE_FREE_PROPORTION = 0.2
|
||||
DGLOBAL_CACHE_FREE_PROPORTION = 0.4
|
||||
|
||||
-- maximum cache size
|
||||
DGLOBAL_CACHE_SIZE_MAXIMUM = 1024*1024*30
|
||||
DGLOBAL_CACHE_SIZE_MAXIMUM = 1024*1024*60
|
||||
|
||||
-- background colour in non scroll mode: 8 = gray, 0 = white, 15 = black
|
||||
DBACKGROUND_COLOR = 0
|
||||
|
||||
@@ -91,7 +91,7 @@ if KOBO_TOUCH_MIRRORED == nil then
|
||||
UIManager:show(TouchProbe:new{})
|
||||
UIManager:run()
|
||||
-- otherwise, we will use probed result
|
||||
else
|
||||
KOBO_TOUCH_MIRRORED = switch_xy
|
||||
elseif switch_xy then
|
||||
Input:registerEventAdjustHook(Input.adjustTouchSwitchXY)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user