Eu uso o software Lua + Leitor para ler arquivos PDF em um tablet Sony Xperia. Em vez de passar na tela para rolar o PDF, eu gostaria de usar um mouse com roda de rolagem para rolar. Isso é possível e o que eu preciso? Usando 4.2.2.
I use Moon+ Reader software to read pdf files on a Sony xperia tablet. Instead of swiping on the screen to scroll the pdf, I would like to use a mouse with scrolling wheel instead to scroll. Is this possible and what do I need? Using 4.2.2.
This answer shows that you can capture touch input from the raw device (`/dev/input/event2') to a file, and then play it back whenever you like. You could then automate an event to play back the captured touch input each time you want to scroll.
If your Xperia tablet is rooted... use an app called Tasker. It is able to emulate to send touch and swipe events to the screen. I have used it in several apps to scroll the screen up. Of course you can use Tasker if the device isn't rooted, but I'm not sure if you can send shell commands.
In Tasker, create a new task, Action category CODE--> RUN SHELL--> input swipe X1 Y1 X2 Y2
Check out this link: http://www.pocketables.com/2013/07/how-to-emulate-touch-input-using-tasker-and-root.html
You can also use Tasker to send button events to emulate a directional pad. Just send x amount of clicks in order to scroll the appropriate amount of the screen.
Now you just have to figure out how you want to trigger that task to run.
If this works, let me know!