hedgewars/uCursor.pas
branchsdl2transition
changeset 11362 ed5a6478e710
parent 10017 de822cd3df3a
child 12659 545e1198e8b9
equal deleted inserted replaced
11361:31570b766315 11362:ed5a6478e710
    23 
    23 
    24 procedure updatePosition;
    24 procedure updatePosition;
    25 var x, y: LongInt;
    25 var x, y: LongInt;
    26 begin
    26 begin
    27     SDL_GetMouseState(@x, @y);
    27     SDL_GetMouseState(@x, @y);
    28     
    28 
    29     if(x <> cScreenWidth div 2) or (y <> cScreenHeight div 2) then
    29     if(x <> cScreenWidth div 2) or (y <> cScreenHeight div 2) then
    30     begin
    30     begin
    31         handlePositionUpdate(x - cScreenWidth div 2, y - cScreenHeight div 2);
    31         handlePositionUpdate(x - cScreenWidth div 2, y - cScreenHeight div 2);
    32 
    32 
    33         if cHasFocus then
    33         if cHasFocus then