# HG changeset patch # User koda # Date 1374891649 -7200 # Node ID 563ab624522c2cb6675bd32e00e422570398071e # Parent 1bcfcaf0926e61e7dbc6a9690b80a478c6b80248 remove many unneeded ifdefs from uTouch diff -r 1bcfcaf0926e -r 563ab624522c hedgewars/uTouch.pas --- a/hedgewars/uTouch.pas Sat Jul 27 04:19:14 2013 +0200 +++ b/hedgewars/uTouch.pas Sat Jul 27 04:20:49 2013 +0200 @@ -93,7 +93,6 @@ finger: PTouch_Data; xr, yr: LongWord; begin -{$IFDEF USE_TOUCH_INTERFACE} xr:= round(x * cScreenWidth); yr:= round(y * cScreenHeight); @@ -181,7 +180,6 @@ end; end; end; -{$ENDIF} end; procedure onTouchMotion(x, y, dx, dy: Single; pointerId: TSDL_FingerId); @@ -240,7 +238,6 @@ widget: POnScreenWidget; xr, yr: LongWord; begin -{$IFDEF USE_TOUCH_INTERFACE} xr:= round(x * cScreenWidth); yr:= round(y * cScreenHeight); @@ -301,7 +298,6 @@ AddCaption('Press the target button to mark the target', cWhiteColor, capgrpAmmoInfo); deleteFinger(pointerId); -{$ENDIF} end; procedure onTouchDoubleClick(finger: TTouch_Data); @@ -311,14 +307,11 @@ procedure onTouchLongClick(finger: TTouch_Data); begin -{$IFDEF USE_TOUCH_INTERFACE} if isOnWidget(jumpWidget, finger) then begin ParseTeamCommand('ljump'); exit; end; - -{$ENDIF} end; procedure onTouchClick(finger: TTouch_Data); @@ -347,7 +340,6 @@ exit; end; -{$IFDEF USE_TOUCH_INTERFACE} if isOnCurrentHog(finger) or isOnWidget(AMWidget, finger) then begin bShowAmmoMenu := true; @@ -359,7 +351,6 @@ ParseTeamCommand('hjump'); exit; end; -{$ENDIF} end; function addFinger(x,y: Longword; id: TSDL_FingerId): PTouch_Data;