[koreader] Re: inkbook prime: disable touch, default application

  • From: Thomas Kluth <tkluth@xxxxxxxxxxxxxxxxxxxxxxx>
  • To: koreader@xxxxxxxxxxxxx
  • Date: Mon, 17 Jul 2017 15:05:37 +0200

Hi Qingping,

thanks for your answer.

1) The inkbook has four physical buttons, two on each side of the
reader. These buttons can be configured in the system settings such that
they do different actions (next/previous page, light on/off, disable
touch, ...). While page turning works well within KOReader, disabling
the touch does not work. It does work in inkbook's own reader, though,
and helps a lot because you have much more space to grasp the reader.
Any way to be able to use this function in KOReader?


Currently, KOReader does support ignoring touches from touch screen,
but that code path is only used for entering screensaver mode. That
said, I think it wouldn't be too hard to add this feature as a plugin.
You just need to map the key presses to toggle the ignore touch event
code path.

Okay, this sounds great. I tried to look for a rather easy tutorial to
write such plugin but did not succeed. I found the extensive
documentation but do not know where exactly to start with. Do you have
any pointers in how to create a plugin? I found on the github page a
hello-world plugin but couldn't find this on my device. Does this mean
that I would need to build the whole KOreader on my own to be able to
create a plugin?
Additionally, I'd be grateful for having pointers to how-to grab
key-presses and how-to call the ignore-touch event.
Thanks!


2) Opening a PDF file from the file browser or other apps gives me the
choice to open it with inkbook's own reader or with Moonreader (another
android reader app that I've installed). However, the KOReader only
appears sometimes. How could I debug this to always have the possibility
to open a PDF with KOReader?


This is unfortunately a inkbook's native system question. I don't have
much experience with inkbook (in fact I have zero), so I can't really
help you with that. Did you have to do any extra step when installing
moonreader to register it with the natvie OS?
While I was composing my answer, I tried something on my own and was
successful. See this github issue for details:
https://github.com/koreader/koreader/issues/3006

Best,
Thomas

Other related posts: