touch: fix wrong dx/dy sign

This commit is contained in:
mittorn 2019-09-27 02:25:38 +07:00
parent 7f3ee9ca71
commit dba757f0c2
1 changed files with 1 additions and 1 deletions

View File

@ -1875,7 +1875,7 @@ void Touch_KeyEvent( int key, int down )
if( down == 1 )
Touch_ControlsEvent( event_down, key == K_MOUSE1?0:1, x, y, 0, 0 );
else
Touch_ControlsEvent( down? event_motion: event_up, key == K_MOUSE1?0:1, x, y, lx-x, ly-y );
Touch_ControlsEvent( down? event_motion: event_up, key == K_MOUSE1?0:1, x, y, x-lx, y-ly );
lx = x, ly = y;
}