Its supposed that you can store the return of a function into variables so the function is called once and when you use the variable you only use the value, so i tried to get the difference in position by calling "GetPosion()" twice in different times,and storing the two values then gets the difference but the difference is always zero !!!!!!!!
my problem is why the function is called one time for the two variables? and correct me if i'm wrong.
pos1=event.GetPosition()
pos2=event.GetPosition()
deff=pos2-pos1
print(pos1, pos2, deff,'\n')