Hello.
I have modified your application using a script written in AutoHotkey. This script allows you to fully control the on and off tracking of the head, through keystrokes, and at the same time consciously press the right, middle, left mouse buttons, the only thing it does not allow is to drag windows with the mouse or normally highlight text fragments in documents, but I think this is solvable (after all, I am not a professional programmer). The script file in the application. In combination with Tobii Eye Tracker 5, which has the ability to teleport the cursor to the place where you look, it becomes an indispensable assistant not only for people with disabilities, but also for people who type a lot of text and cannot find a PC keyboard with a touchpad location on the market, as on laptops (there are Chinese, but the quality leaves much to be desired). Every time you pull your hand from the keyboard behind the mouse, you get tired.
I suggest adding the script functionality to your program and making it embedded in your application, special tests are required when working with the Windows 10 on-screen keyboard and changing the keyboard language, my script copes with these tasks, but it is very bad and always breaks.
It should also be borne in mind that not all people are completely paralyzed and some have legs or remnants of hands with which they can press big key, but cannot control the mouse. This script will be useful for them.
Demonstration of the script on video.
https://www.youtube.com/watch?v=hCLEpaX12ag
My github https://github.com/Durf1985/Mouse-via-Head-Eye-Tracking (russian language- i planed translate. Use Yandex translate - he correct translate russian to english)
All operations are performed using 4 CapsLock buttons - fully reserved. LShift - only if CapsLock is pressed. RCtrl - fully reserved. Alt Gr -reserved for Tobii Eye Tracker. My Logitech K800 Keyboard
Launch script like admin
Thank's
Thanks for sharing!