1j01 / tracky-mouse

Mouse control via head tracking, as a cross platform desktop app and JS library. eViacam alternative.
https://trackymouse.js.org/
MIT License
25 stars 4 forks source link

Make it easier to click on the very edges of the screen #32

Open 1j01 opened 1 year ago

1j01 commented 1 year ago

When you go to the edge of the screen, it stops, and then if you move at all in the other direction, or if the head tracking jitter is detected as you moving at all in the other direction, it will move the pointer away from the edge of the screen. This is useful for a simple form of calibration — move your head further past the edge of the screen so that when you come back it'll be offset by that distance, and you can reach further away from that edge.
But the hard stop at the edge of the screen makes it hard to click at the very edge, which is needed for some operating system features.

Adding a small margin outside of the screen, where it keeps track of the position, past where it can actually move the mouse, should make it easier to perform clicks on the edges and corners of the screen. It shouldn't be too large as to affect your ability to calibrate as I described above.

To be clear, it's not that hard to click at the edge right now, you just have to keep moving towards the edge during the dwell time, so it doesn't detect anything as moving backwards.