Skip to content

Instantly share code, notes, and snippets.

@sdabet
Created January 23, 2013 18:06
Show Gist options
  • Save sdabet/4611124 to your computer and use it in GitHub Desktop.
Save sdabet/4611124 to your computer and use it in GitHub Desktop.
CCMenuItemImage *menuItem = [CCMenuItemImage ...];
// Make touch area centered and 4 times smaller than bounding box
menuItem.touchArea = CGRectMake(
menuItem.contentSize.width/4,
menuItem.contentSize.height/4,
menuItem.contentSize.width/2,
menuItem.contentSize.height/2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment