   Touch support for iPhone project
  Hi!I am new to iPhone development (at my 5th day). Next up on my list is touch support. I have an application that uses OpenGL ES based on the code you get in the GLSprite sample from the SDK. Now, extending this sample, how would I implement support for multitouch?I tried some connection thingy in the NIB file but did not understand a thing about that. I also simply tried to override the touchesEnded method in my EAGLView class, but no success. How do I do this? Thanks ;)   
Quote:Original post by EldritchI tried some connection thingy in the NIB file but did not understand a thing about that. I also simply tried to override the touchesEnded method in my EAGLView class, but no success. How do I do this? Thanks ;)You were on the right track - override touchesBegan or touchesEnded on your GLView class. Actually doing anything meaningful with touches is a bit tricky, but you should be able to handle simple taps and drags without much trouble.   ;  Okey, got it to work, thanks :D[Edited by - Eldritch on June 25, 2009 3:38:16 PM];  Also be sure to start heavily using the iPhone Developer Portal.  Once you log in, you have access to tons of docs about everything including sample code for just about everything that's possible to do on the phone.http://developer.apple.com/iphone/-me   ;  I am using it :)Hmm, my touch input seems to be wacked.. my application is running exclusively in Landscape (Right) mode. The coordinates of my touch input, however, is still counting the input as if it was in Portrait.. so Up/Down affects the X coordinate, and Left/Right affects the Y coordinate. So, there are about 20 "dead pixels" on the left side of the screen from something I am guessing is the touch input thingy thinking that the title bar is there...Is this how it should be or have I missed something (again) ? :D   ;Quote:Original post by EldritchHmm, my touch input seems to be wacked.. my application is running exclusively in Landscape (Right) mode. The coordinates of my touch input, however, is still counting the input as if it was in Portrait.. so Up/Down affects the X coordinate, and Left/Right affects the Y coordinate. So, there are about 20 "dead pixels" on the left side of the screen from something I am guessing is the touch input thingy thinking that the title bar is there...Touch coordinates are always in portrait mode - just flip the x and y coordinates to get landscape mode. Make sure you disable the status bar through the info.plist setting (not in code), but even so it may be a dead area (haven't figured out why it sometimes is and sometimes isn't).   ;Quote:Make sure you disable the status bar through the info.plist setting (not in code)Okay, I know this is a noob question. But how EXACTLY do you do this? I assume you go into info.plist and change an environment variable or something but I haven't been able to find one place that documents all of this. It seems to be so basic that everybody just says "edit plist file"   ;  Bing it :DAdd this to the plist file:<key>UIStatusBarHidden</key><true/>;  That works perfectly. But is there a list of these attributes somewhere that can be changed via the plist?   ;Quote:Original post by darkpegasusThat works perfectly. But is there a list of these attributes somewhere that can be changed via the plist?The full list is here, but most of those are more useful in Cocoa development than UIKit.   