Babyhamsta / Aimmy

Universal Second Eye for Gamers with Impairments (Universal AI Aim Aligner - ONNX/YOLOv8 - C#)
Other
860 stars 336 forks source link

Some questions about mouse movement #1438

Open IamTest233 opened 3 months ago

IamTest233 commented 3 months ago

I joined the Discord channel but don't have permission to post issues on support, so I'm asking over here! I see that CubicBezier is used in MoveCrosshair, but it starts, ends and the two control points (one third and two thirds of the way down) are on a straight line, which at this point would not be a curve but a straight line, not sure if I'm misunderstanding this, and I also see that targetY = (int)(targetY * ( double)ScreenWidth / ScreenHeight); I don't understand why it needs to be multiplied by aspectRatioCorrection, so that the position of Y won't even be the correct position?