equal
deleted
inserted
replaced
100 begin |
100 begin |
101 stopFiring:= false; |
101 stopFiring:= false; |
102 ParseCommand('+attack', true); |
102 ParseCommand('+attack', true); |
103 exit; |
103 exit; |
104 end; |
104 end; |
105 if finger.x < leftButtonBoundary then |
105 if (finger.x < leftButtonBoundary) and (finger.y < 390) then |
106 begin |
106 begin |
107 ParseCommand('+left', true); |
107 ParseCommand('+left', true); |
108 walkingLeft := true; |
108 walkingLeft := true; |
109 exit; |
109 exit; |
110 end; |
110 end; |
373 convertToCursor := round(xy/32768*scale) |
373 convertToCursor := round(xy/32768*scale) |
374 end; |
374 end; |
375 |
375 |
376 function isOnFireButton(finger: Touch_Finger): boolean; |
376 function isOnFireButton(finger: Touch_Finger): boolean; |
377 begin |
377 begin |
378 isOnFireButton:= (finger.x < 150) and (finger.y > 390); |
378 printFinger(finger); |
|
379 WriteToConsole(Format('%d %d ',[round((-cScreenWidth+20)/0.8), round((cScreenHeight+55)/0.8)])); |
|
380 WriteToConsole(Format('%d, %d',[cScreenWidth, cScreenHeight])); |
|
381 isOnFireButton:= (finger.x < 205) and (finger.y > 420); |
379 end; |
382 end; |
380 |
383 |
381 function isOnCrosshair(finger: Touch_Finger): boolean; |
384 function isOnCrosshair(finger: Touch_Finger): boolean; |
382 var |
385 var |
383 x,y,fingerX, fingerY : hwFloat; |
386 x,y,fingerX, fingerY : hwFloat; |