View Single Post
Old 05-07-2025, 01:57 PM   #249
akadaedalus
Enthusiast
akadaedalus began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-500
Regarding additional options beyond prevPage and nextPage.

I spent an inordinate amount of time looking at the btpt source code and decompiling the libnickel library. I don't code Qt so it was a big headache but I could at least make some guesses. a) it only uses ReadingView methods, b) the method needs to take zero arguments, and c) it somehow truncates the method name to about 12 characters when trying to call them. prevPage() and nextPage() are callable with btpt but most/all others aren't. goToPrevChapter() even requires an argument so unless it didn't at one time, it was never a valid option at least on the Libra 2. prevChapter() does exist in the AudiobookPlayer methods and that is probably where the confusion came from.

To make the fancier remotes like the 8bitdo work, it would probably require a new plugin that calls more than just ReadingView stuff. I have a notion of maybe hooking into NickelMenu/NickelDBus with an event listener similar to btpt but honestly I don't think I'll have the time to look into that this year at all. Remember I don't code Qt and it would be a huge time suck.
akadaedalus is offline   Reply With Quote