mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[feat] Add support for BQ/Fnac devices (#4294)
Adds support for devices found in https://blog.bq.com/es/bq-ereaders-developers-program/. Tested on BQ Cervantes 4 (last BQ device from 2017). It adds a new touch input event handler (discussed in #4275) which should work on other single touch devices (ie: Kobo Touch, Mini, Glo, Aura HD) but wasn't tested. Includes base bump with: [feat] Add BQ/Fnac device support (https://github.com/koreader/koreader-base/pull/745)
This commit is contained in:
committed by
Frans de Jonge
parent
d1298ff8e5
commit
1e69fae7bc
@@ -44,7 +44,7 @@ local footerTextGeneratorMap = {
|
||||
if not Device:hasFrontlight() then return "L: NA" end
|
||||
local powerd = Device:getPowerDevice()
|
||||
if powerd:isFrontlightOn() then
|
||||
if Device:isKobo() then
|
||||
if Device:isCervantes() or Device:isKobo() then
|
||||
return ("L: %d%%"):format(powerd:frontlightIntensity())
|
||||
else
|
||||
return ("L: %d"):format(powerd:frontlightIntensity())
|
||||
|
||||
Reference in New Issue
Block a user