Quote:
Originally Posted by arooni
I have a boox nova air arriving today and plan on reading mostly with koreader. I think I had asked this before on GitHub but was wondering if hardware keyboards would be supported. Would be very handy for taking notes on a highlighted passage i'd like to recall later
|
It is doable but not trivial to implement.
There're no native methods that emulate what
https://developer.android.com/refere...nicodeChar(int) does and include a JNI call each time a key is pressed is too costly and leads to missing keystrokes.
We might need to implement this the other way around (proccesing all keystrokes while we're in inputText state and send the resulting code to our lua loop using a named pipe, pretty much like we're already doing for generic android broadcasts in
https://github.com/koreader/android-...entReceiver.kt).
If some developer is willing to do the job please open a new ticket in
https://github.com/koreader/android-luajit-launcher. What's required for the task is familiarity with android SDK (or programming in general and willing to learn a new platform) and a few free hours to tinker and test solutions.
TL;DR: No ETA, patches welcome.