mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-31 09:15:13 +00:00
touch: fix wrong dx/dy sign
This commit is contained in:
parent
7f3ee9ca71
commit
dba757f0c2
@ -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…
x
Reference in New Issue
Block a user