simphax / Touchmote

Touchmote
GNU General Public License v3.0
116 stars 31 forks source link

Add a simple radius to smoothing cursor #62

Closed DevNullx64 closed 8 years ago

DevNullx64 commented 9 years ago

After the position averaging for smoothing cursor's position, check if distance beetween "curent" stable position and the new smothed one is biger than a radius (set in settings.json by the "pointer_positionRadius" entry). In this case, the current stable position is moved by a vector "new position" - "current stable" less the radius.

The goal is to virtualy move a circle of radius "pointer_positionRadius". The center of the circle is the current stable position. This cicle is "internaly" move as the new position was a push on circle's edge. So, while the new smothed position is in the circle, no move occure.

I can do better but it's the fastest stabilisation I can do for now :). I need to record more statistical data to do the best.

I've begin with a radius of 18.0 (it cover a large amont of noise) and try up to 128. But at this level, you may experiency some lag. On my FullHD screen, 32.0 is a good value.

yodus commented 9 years ago

Works quite nice! In my case (42" full HD TV) radius of 12.0 - 18.0 is good enough, so lag is barely noticeable and pointer is significantly more stable. Good job and thank You!

DevNullx64 commented 9 years ago

I'm happy that the result's appreciate :) I hope do more next step ^^'

Thank :)

2015-08-13 8:11 GMT+02:00 yodus notifications@github.com:

Works quite nice! In my case (42" full HD TV) radius of 12.0 - 18.0 is good enough, so lag is barely noticeable and pointer significantly stable. Good job and thank You!

— Reply to this email directly or view it on GitHub https://github.com/simphax/Touchmote/pull/62#issuecomment-130549530.

DevNullx64 commented 9 years ago

I've test 12.0 and 18.0 with my 100" screen... and it's very awful ! So I've change batteries of my sensor bar and all it's right now --'. I'm a dummy... and not an half of ! lol

Le ven. 14 août 2015 à 22:27, Luc BOLOGNA bologna.luc@gmail.com a écrit :

I'm happy that the result's appreciate :) I hope do more next step ^^'

Thank :)

2015-08-13 8:11 GMT+02:00 yodus notifications@github.com:

Works quite nice! In my case (42" full HD TV) radius of 12.0 - 18.0 is good enough, so lag is barely noticeable and pointer significantly stable. Good job and thank You!

— Reply to this email directly or view it on GitHub https://github.com/simphax/Touchmote/pull/62#issuecomment-130549530.