[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:
Martín Fernández
2018-10-31 23:48:36 +01:00
committed by Frans de Jonge
parent d1298ff8e5
commit 1e69fae7bc
32 changed files with 883 additions and 31 deletions

View File

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