Ancestors

Written by Adam Honse on 2024-11-15 at 06:44

Got Touchpad Emulator working on my #Xiaomi Pad 5 Pro running #postmarketOS! It is odd in that the volume up and down keys are on two different input devices so I had to do some refactoring to handle that. Also the touchscreen emits different events for some reason and it emits them in a slightly different order than on other devices I've used Touchpad Emulator with, so I had to make a workaround for that. I think that workaround messed with scroll wheel emulation, a problem for tomorrow.

=> More informations about this toot | More toots from CalcProgrammer1@mastodon.social

Written by Adam Honse on 2024-11-15 at 06:46

https://gitlab.com/CalcProgrammer1/TouchpadEmulator

It turns your device's touchscreen into a mouse. Toggles between mouse and touchscreen mode using volume keys or slider (on OnePlus 6T) and also toggles onscreen keyboard enabled/disabled.

=> More informations about this toot | More toots from CalcProgrammer1@mastodon.social

Written by Luca Weiss on 2024-11-15 at 07:06

@CalcProgrammer1 Instead of hardcoding the input devices could you iterate over all available ones and query which provide the required keys (vol down, vol up, touch) and poll those then?

I tried it on my device but quickly gave up because I didn't want to hardcode yet another set of paths.

=> More informations about this toot | More toots from z3ntu@fosstodon.org

Written by Adam Honse on 2024-11-15 at 07:10

@z3ntu I'm not sure how to poll a device on what input events it could return without having you manually click the buttons every time it starts up. Do you know how to do this?

I just added two more devices - Google Pixel 3a (google-sargo) and Xiaomi Poco F1 (xiaomi-beryllium) and tested it works on both.

So far the supported devices are:

=> More informations about this toot | More toots from CalcProgrammer1@mastodon.social

Toot

Written by Adam Honse on 2024-11-15 at 07:11

@z3ntu I also should go back and add my old devices - Nexus 5 (lg-hammerhead), Samsung Galaxy S5 (samsung-klte), and Samsung Galaxy Note 3 (samsung-hlte).

=> More informations about this toot | More toots from CalcProgrammer1@mastodon.social

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113485723761784061
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
309.479131 milliseconds
Gemini-to-HTML Time
0.911538 milliseconds

This content has been proxied by September (3851b).