hedgewars/uCursor.pas
changeset 10017 de822cd3df3a
parent 10015 4feced261c68
child 12659 545e1198e8b9
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
    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