equal
deleted
inserted
replaced
22 if(x <> cScreenWidth div 2) or (y <> cScreenHeight div 2) then |
22 if(x <> cScreenWidth div 2) or (y <> cScreenHeight div 2) then |
23 begin |
23 begin |
24 CursorPoint.X:= CursorPoint.X + x - cScreenWidth div 2; |
24 CursorPoint.X:= CursorPoint.X + x - cScreenWidth div 2; |
25 CursorPoint.Y:= CursorPoint.Y - y + cScreenHeight div 2; |
25 CursorPoint.Y:= CursorPoint.Y - y + cScreenHeight div 2; |
26 |
26 |
27 if cHasFocus then SDL_WarpMouse(cScreenWidth div 2, cScreenHeight div 2); |
27 if cHasFocus then |
|
28 SDL_WarpMouse(cScreenWidth div 2, cScreenHeight div 2); |
28 end |
29 end |
29 end; |
30 end; |
30 |
31 |
31 end. |
32 end. |