Enable Multi-Touch?

Apprentice
Posts: 16
Joined: 2010.01
Post: #1
How do you enable Multi-Touch in this project? Source Forge
I've googled it and nothing I've found will work. Sad I think it's not working because it uses opengl, but I don't know how to enable multi-touch in an opengl project.

Thanks!
Quote this message in a reply
Member
Posts: 440
Joined: 2002.09
Post: #2
I think your post is missing a link to "this" project Huh but even OpenGL apps need a UIView at some point (e.g. see EAGLView in Apple's template) so just set multipleTouchEnabled as needed: http://developer.apple.com/iPhone/librar...uchEnabled
Quote this message in a reply
Apprentice
Posts: 16
Joined: 2010.01
Post: #3
Opps sorry. I edited the original post and fixed the link.
Quote this message in a reply
Member
Posts: 440
Joined: 2002.09
Post: #4
A quick look at that project reveals it uses a buttload of views (one for each level/state). Not necessarily how I'd go about it, but regardless they are all subclasses of GameState which is a UIView. So you should be able to setMultipleTouchEnabled:YES when initializing GameState to get multitouch application-wide, or just set that in which ever subclass actually needs it. Probably better to do it in the subclasses.
Quote this message in a reply
Apprentice
Posts: 16
Joined: 2010.01
Post: #5
It worked! Thank you so much! Smile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Multi-touch failing Sumaleth 1 2,494 Feb 24, 2010 08:49 PM
Last Post: Sumaleth
  Multi touch individual fingers jjslay 3 3,149 Jun 18, 2009 10:01 AM
Last Post: jjslay
  Multi touch response time captainfreedom 12 6,980 May 9, 2009 12:35 PM
Last Post: Frank C.
  Multi Touch wonza 7 5,322 Mar 21, 2009 03:06 AM
Last Post: wonza
  Input performance with multi touch godexsoft 6 3,409 Jan 17, 2009 12:04 AM
Last Post: longjumper