rpg_eklt
rpg_eklt copied to clipboard
In "getEventFramesAndReset", it seems the 'rx' and 'ry' are always zero ?
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