View Single Post
Old 11-29-2024, 09:35 PM   #221
DrBrrl
Junior Member
DrBrrl began at the beginning.
 
Posts: 4
Karma: 12
Join Date: Nov 2024
Device: Kobo Libra 2
Okay, read through all the posts and found three that relate to what i am trying to do.

lumping-sugar66 here is talking about getting more functions working, which is what i would like.
Quote:
Originally Posted by lumping-sugar66 View Post
I'm thinking of making a fork of the repository to help @twowell, and I think we can add a few functions to this addon (which I use heavily).

8bitdo's are great but there are only 4 functions that I was able to get working. next and previous chapter, and next and previous pages. The use case I was looking into is to adjust the distance between the reader and myself so I would need to implement things like:

Increase, Decrease font size
Increase Decrease line height
Bookmark, Unbookmark, Go to next/prev Bookmark
Turn the screen 90, 180, 270 degrees
generic NickelMenu commands/Shell scripts
Dark Mode/Light mode
Background light (no sure how stable this is)
lumping-sugar66 also stated that this plugin only supports 4 actions currently:
Quote:
Originally Posted by lumping-sugar66 View Post
* More buttons, but this plugin only supports 4 actions. next page, prev page, next chapter, prev chapter.
Thena has managed to map more than just nextPage, prevPage,
nextChapter, and prevChapter using the 8BitDo app and the micro (i have the zero 2 and it doesn't work with the app).
Quote:
Originally Posted by Thena View Post
A number of users on the Kobo subreddit have reported the 8bitdo micro work through mapping on the map in k mode without any config on the kobo. Using the app, I mapped it to page forward and back, homepage, and sleep. I'd be interested to know what other keyboard functions could map to the navigation screen or between chapters or even editing font settings. Other than that, I am liking the small size and the fact I don't need to use the clip on margins.
The actions are explained to the Kobo via the config files for each bluetooth device that you set up and the files are written as below (based on the documentation for this kobo addon):
Code:
METHOD TYPE CODE VALUE
Where, and i quote, "METHOD is the name of the ReadingView method to invoke. prevPage and nextPage turn the pages. prevChapter and nextChapter are also valid choices, but I'm not sure if any other methods make sense here."

With the config file, you are able to make any button do anything you want, so long as you know what the METHOD code is, and so long as that code exists. I appreciate your input Renate! I just think this is a problem that might be solvable from within the config file code (possibly), and not a "modify bluetooth device" situation.

My questions are:
1. Where did these "ReadingView method" codes come from? How did tsowell who originally posted this find them out?
2. Are there only these four codes? It seems unlikely, as there are more actions possible when in "ReadingView", and Thena provided us with an example of the bluetooth device going back to the home page and putting the device to sleep (though not through the config file, perhaps, but through the 8BitDo app).
3. How would one go about finding codes for things that are possible to do in ReadingView? Like e.g. when you slide your finger up and down the left side of the screen, that changes the backlight brightness. It's possible to toggle night mode on and off. It's possible to change font size. Do these events have codes attached to them?
DrBrrl is offline   Reply With Quote