cocoaTouch/SDLOverrides/SDL_uikitview.m
changeset 2705 2b5625c4ec16
parent 2701 3a8560c00f78
child 2714 c85ffe57d971
equal deleted inserted replaced
2704:51cda17b7c3b 2705:2b5625c4ec16
    65 		SDL_AddMouse(&mice[i], "Mouse", 0, 0, 1);
    65 		SDL_AddMouse(&mice[i], "Mouse", 0, 0, 1);
    66 	}
    66 	}
    67 
    67 
    68 	attackButton = [[UIButton alloc] initWithFrame:CGRectMake(30, 480, 260,50)];
    68 	attackButton = [[UIButton alloc] initWithFrame:CGRectMake(30, 480, 260,50)];
    69 	[attackButton setBackgroundImage:[UIImage imageNamed:@"Default.png"] forState:UIControlStateNormal];
    69 	[attackButton setBackgroundImage:[UIImage imageNamed:@"Default.png"] forState:UIControlStateNormal];
       
    70 	[attackButton setBackgroundImage:[UIImage imageNamed:@"Default.png"] forState:UIControlStateHighlighted];
    70 	[attackButton addTarget:[self superclass] action:@selector(attackButtonPressed) forControlEvents:UIControlEventTouchDown];
    71 	[attackButton addTarget:[self superclass] action:@selector(attackButtonPressed) forControlEvents:UIControlEventTouchDown];
    71 	[attackButton addTarget:[self superclass] action:@selector(attackButtonReleased) forControlEvents:UIControlEventTouchUpInside|UIControlEventTouchUpOutside];
    72 	[attackButton addTarget:[self superclass] action:@selector(attackButtonReleased) forControlEvents:UIControlEventTouchUpInside|UIControlEventTouchUpOutside];
    72 	[self addSubview:attackButton];
    73 	[self addSubview:attackButton];
    73 
    74 
    74 	menuButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 480, 30,50)];
    75 	menuButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 480, 30,50)];