Quote:
Originally Posted by trence
I'm a Kobo developer newbie, so please forgive me for my ignorance on the topic. For step 3 of the guide on your Github it says to be sure the device is mapped to event3, how would I go about doing that on a Kobo? I believe I understand how to go about the rest. Thank you!
|
Check the devices currently available in your system first:
And connect your bluetooth device and do it again, and see the difference.
If you get a /dev/input/event3 that wasn't there before, that's your device. After the device is there, you can do
and press on the bluetooth page turner buttons, see if your event stream detects these events.
If your event list doesn't change after you pair/connect your device, uhid.ko may be required and not have applied. You can cd into the bluetooth.koplugin folder and do
and retry the connection with the bluetooth clicker again. If you still don't see the event, it's likely that your device is trying to identify itself as a weird device and may not be compatible.
If your event is mapped to a different location, modify main.lua to match yours.
Be sure to check device.lua.patch for what's being done. the
addition needs to go into your devices' configuration. For me that's Clara 2E but yours could be different. device.lua is full of all devices and specific configurations for each.
I also realized a slight mistake in my code. The line at
https://github.com/onatbas/bluetooth...5/main.lua#L61
has a hardcoded path and assumes that KOReader is installed under "/mnt/onboard/.adds/koreader/". This may not be the right location for your installation, so change that your path as well.