Skip to content

Commit

Permalink
touches limit macro
Browse files Browse the repository at this point in the history
  • Loading branch information
cnharris10 committed May 7, 2012
1 parent d9a09f0 commit 757a268
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file not shown.
1 change: 1 addition & 0 deletions Staff/StaffController.h
Expand Up @@ -18,6 +18,7 @@

#define NUMBER_OF_NOTES 15
#define ICON_COUNT 7
#define MAXTOUCHES 4

typedef struct image_view_metadata {
int height;
Expand Down
5 changes: 3 additions & 2 deletions Staff/StaffController.m
Expand Up @@ -14,16 +14,17 @@ @implementation StaffController

@synthesize canvas;
@synthesize staffView;
@synthesize topMenu;
@synthesize lines;
@synthesize spaces;
@synthesize dots;
@synthesize notes;
@synthesize instrumentsButton;
@synthesize sharpFlatButton;
@synthesize topMenu;
@synthesize popoverView;
@synthesize popoverController;


-(id)init{
[self viewDidLoad];
return self;
Expand Down Expand Up @@ -509,7 +510,7 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
//NSLog(@"# of Touches: %d",[touches count]);
NSArray *allTouches = [touches allObjects];
AppDelegate *mainDelegate = (AppDelegate*)[[UIApplication sharedApplication]delegate];
if(numtouches < 5){
if(numtouches < MAXTOUCHES){
for (UITouch *touch in allTouches)
{
if(touch.view.tag > 0){
Expand Down

0 comments on commit 757a268

Please sign in to comment.