Allow legacy applications on capacitive touchscreens?
It would be nice to be able to run applications designed for mouse on Droid 4 (or any device with capacitive touchscreen). I was afraid that it would not be possible, but there might be a way.
https://gitlab.com/tui/tui/tree/master/tmouse turns touchscreen into touchpad, so you can have finger on screen and still see mouse cursor. So good news is this can be done. Question is how to integrate it cleanly.
FWIW, I've written something called uinput-mapper ( https://github.com/MerlijnWajer/uinput-mapper http://maemo.org/packages/view/uinput-mapper/ ) - it also serves this kind of purposes although I made it for an arcade machine. Except that it creates virtual input devices that you can enable/disable, and they will show up in /dev/input/eventX.
I am wondering how integration could work. A simple option of course would be to be able to start/stop the program from an application or status applet.
The upside is that it should be also be able to automatically disable ("grab") the input device, so X should not read any more events from it. Saves you from "xinput disable <identifier". (Unless X grabs it, of course - have to check)
GTK3 apps do have touch support natively. gtk2 doesn't and iirc qt doesn't either? just saying. for gtk2 backporting gtk3 features specific to touch gestures should be a great addition