Browse Source

touch: fix wrong dx/dy sign

pull/2/head
mittorn 5 years ago
parent
commit
dba757f0c2
  1. 2
      engine/client/in_touch.c

2
engine/client/in_touch.c

@ -1875,7 +1875,7 @@ void Touch_KeyEvent( int key, int down ) @@ -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;
}

Loading…
Cancel
Save