equal
deleted
inserted
replaced
324 |
324 |
325 // reset default dimming |
325 // reset default dimming |
326 doDim(); |
326 doDim(); |
327 |
327 |
328 switch ([allTouches count]) { |
328 switch ([allTouches count]) { |
329 case 1: |
329 case 1: |
330 removeConfirmationInput(); |
330 removeConfirmationInput(); |
|
331 startingPoint = [[[allTouches allObjects] objectAtIndex:0] locationInView:self.view]; |
331 if (2 == [[[allTouches allObjects] objectAtIndex:0] tapCount]) |
332 if (2 == [[[allTouches allObjects] objectAtIndex:0] tapCount]) |
332 HW_zoomReset(); |
333 HW_zoomReset(); |
333 break; |
334 break; |
334 case 2: |
335 case 2: |
335 // pinching |
336 // pinching |
458 // moves the cursor around |
459 // moves the cursor around |
459 HW_setCursor(HWX(currentPosition.x), HWY(currentPosition.y)); |
460 HW_setCursor(HWX(currentPosition.x), HWY(currentPosition.y)); |
460 } else { |
461 } else { |
461 DLog(@"x: %f y: %f -> X:%d Y:%d", currentPosition.x, currentPosition.y, HWX(currentPosition.x), HWY(currentPosition.y)); |
462 DLog(@"x: %f y: %f -> X:%d Y:%d", currentPosition.x, currentPosition.y, HWX(currentPosition.x), HWY(currentPosition.y)); |
462 HW_setCursor(HWX(currentPosition.x), HWY(currentPosition.y)); |
463 HW_setCursor(HWX(currentPosition.x), HWY(currentPosition.y)); |
|
464 if (HW_isWeaponSwitch()) |
|
465 HW_tab(); |
463 } |
466 } |
464 break; |
467 break; |
465 case 2: |
468 case 2: |
466 first = [[allTouches allObjects] objectAtIndex:0]; |
469 first = [[allTouches allObjects] objectAtIndex:0]; |
467 second = [[allTouches allObjects] objectAtIndex:1]; |
470 second = [[allTouches allObjects] objectAtIndex:1]; |