View Single Post
Old 09-20-2021, 03:56 PM   #2
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by arooni View Post
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.
pazos is offline   Reply With Quote