remove last boolean keys references and using only ParseCommand in uTouch now
authorXeli
Fri, 27 Apr 2012 23:39:01 +0200
changeset 6949 615cc50903c8
parent 6948 7271ce89950f
child 6950 f34ff54b0cbd
remove last boolean keys references and using only ParseCommand in uTouch now
hedgewars/uTouch.pas
--- a/hedgewars/uTouch.pas	Sat Apr 28 12:35:29 2012 +0200
+++ b/hedgewars/uTouch.pas	Fri Apr 27 23:39:01 2012 +0200
@@ -235,19 +235,19 @@
     dec(buttonsDown);
     
     if widget = @arrowLeft then
-        leftKey:= false;
+        ParseTeamCommand('-left');
     
     if widget = @arrowRight then
-        rightKey:= false;
+        ParseTeamCommand('-right');
 
     if widget = @arrowUp then
-        upKey:= false;
+        ParseTeamCommand('-up');
 
     if widget = @arrowDown then
-        downKey:= false;
+        ParseTeamCommand('-down');
 
     if widget = @fireButton then
-        spaceKey:= false;
+        ParseTeamCommand('-attack');
     end;
  
 deleteFinger(pointerId);