So since we understood that there may be a simple method that allows to use the HDMI based "Monitor" software from Onyx also as a touchpad - in other words, the Max2 (etc.) becomes a touchscreen monitor - I further modified the (modifications on the) original code to allow the magic with the tricks we can afford here.
Now, with this version:
-- tapping on the NW corner ("corner" = within 100 dots) opens the original menu. Tapping on the main region of the screen does not open the menu anymore, because you are supposed to able to use it as a touchscreen;
-- tapping on the NE corner requests a full screen refresh;
-- tapping on the SW corner changes EPD mode to Normal / high quality;
-- tapping on the SE corner changes EPD mode to A2 / fast mode;
-- long tap does not trigger any more the "Exit?" menu, because you should be allowed to drag the mouse pointer around.
Upon touch, the application logs the taps the following way:
03-07 22:32:02.247: I/OnyxMonitEv(3434): T:0|1643,716
03-07 22:32:02.403: I/OnyxMonitEv(3434): T:1|1593,733
03-07 22:32:03.520: I/OnyxMonitEv(3434): T:0|623,849
03-07 22:32:03.960: I/OnyxMonitEv(3434): T:1|1202,539
03-07 22:32:05.520: I/OnyxMonitEv(3434): T:0|1694,814
03-07 22:32:05.637: I/OnyxMonitEv(3434): T:1|1694,814
and these logs could be used to reflect with mouse actions on the source desktop.
Sogaiu has already written a python script that does the job, I will soon modify it to match with this "more precise" Monitor version.
For the technically inclined, I also attached the main "modification" (outside this files the interventions are very scarce).
Last edited by mdp; 03-07-2018 at 04:51 PM.
|