I'm familiar with the built in "buttons swap function", but this is not what I want, unfortunately (this will simply swap the left and right buttons' functionality, but I want both to do "forward").
Thanks for pointing me towards the patches, I was not aware of those! I tried my best and came up with:
Code:
local fn = '/mnt/ext1/applications/koreader/frontend/device/input.lua'
local fp = io.open( fn, "r" )
local str = fp:read( "*all" )
str = string.gsub( str, "[framebuffer.DEVICE_ROTATED_UPRIGHT] = {}", "[framebuffer.DEVICE_ROTATED_UPRIGHT] = { LPgBack = \"LPgFwd\", RPgBack = \"RPgFwd\" }" )
fp:close()
fp = io.open( fn, "w+" )
fp:write( str )
fp:close()
But this does not work yet. I'm not familiar with the lua script language at all. The patch does seem to get applied when opening KOreader:
Code:
03/23/23-18:27:35 INFO Applying patch: ./patches/1-Buttons.lua
But input.lua doesn't get changed yet. Maybe a kind soul can help me out here? Thanks!