hedgewars/hwengine.pas
changeset 8346 3443e0de2c9d
parent 8327 a6f3452f5f94
child 8350 14b938faec69
equal deleted inserted replaced
8344:3d18f7f71d65 8346:3443e0de2c9d
   262                 SDL_QUITEV:
   262                 SDL_QUITEV:
   263                     isTerminated:= true
   263                     isTerminated:= true
   264             end; //end case event.type_ of
   264             end; //end case event.type_ of
   265         end; //end while SDL_PollEvent(@event) <> 0 do
   265         end; //end while SDL_PollEvent(@event) <> 0 do
   266 
   266 
       
   267         if (CursorMovementX <> 0) or (CursorMovementY <> 0) then
       
   268             handlePositionUpdate(CursorMovementX * cameraKeyboardSpeed, CursorMovementY * cameraKeyboardSpeed);
       
   269 
   267         if (cScreenResizeDelay <> 0) and (cScreenResizeDelay < RealTicks) and
   270         if (cScreenResizeDelay <> 0) and (cScreenResizeDelay < RealTicks) and
   268            ((cNewScreenWidth <> cScreenWidth) or (cNewScreenHeight <> cScreenHeight)) then
   271            ((cNewScreenWidth <> cScreenWidth) or (cNewScreenHeight <> cScreenHeight)) then
   269         begin
   272         begin
   270             cScreenResizeDelay:= 0;
   273             cScreenResizeDelay:= 0;
   271             cScreenWidth:= cNewScreenWidth;
   274             cScreenWidth:= cNewScreenWidth;