rpg_eklt icon indicating copy to clipboard operation
rpg_eklt copied to clipboard

In "getEventFramesAndReset", it seems the 'rx' and 'ry' are always zero ?

Open wtyytw0 opened this issue 1 year ago • 0 comments

Hi,

In patch.h, the function "getEventFramesAndReset", line 109 ~ 119: int x = e.x - center_.x + half_size_; int y = e.y - center_.y + half_size_; double rx = e.x - center_.x + half_size_ - x; double ry = e.y - center_.y + half_size_ - y; It seems the 'rx' and 'ry' are always zero, because you just calculate x as "e.x - center_.x + half_size_" and then calculate the subtraction of x and 'e.x - center_.x + half_size_' as 'rx'. How do I understand the variable 'rx' and 'ry'?

Thank you, Taoyi

wtyytw0 avatar Jul 20 '23 12:07 wtyytw0