src/video/uikit/SDL_uikitview.m
changeset 4465 3e69e077cb95
parent 3685 64ce267332c6
child 4488 6dc6a2bdd55e
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Sun May 09 19:55:28 2010 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Sun May 09 20:47:22 2010 -0700
     1.3 @@ -47,6 +47,7 @@
     1.4  	[self initializeKeyboard];
     1.5  #endif	
     1.6  
     1.7 +#if FIXME_MULTITOUCH
     1.8  	int i;
     1.9  	for (i=0; i<MAX_SIMULTANEOUS_TOUCHES; i++) {
    1.10          mice[i].id = i;
    1.11 @@ -54,6 +55,7 @@
    1.12  		SDL_AddMouse(&mice[i], "Mouse", 0, 0, 1);
    1.13  	}
    1.14  	self.multipleTouchEnabled = YES;
    1.15 +#endif
    1.16  			
    1.17  	return self;
    1.18  
    1.19 @@ -64,6 +66,7 @@
    1.20  	NSEnumerator *enumerator = [touches objectEnumerator];
    1.21  	UITouch *touch =(UITouch*)[enumerator nextObject];
    1.22  	
    1.23 +#if FIXME_MULTITOUCH
    1.24  	/* associate touches with mice, so long as we have slots */
    1.25  	int i;
    1.26  	int found = 0;
    1.27 @@ -104,7 +107,8 @@
    1.28  		/* switch back to our old mouse */
    1.29  		SDL_SelectMouse(oldMouse);
    1.30  		
    1.31 -	}	
    1.32 +	}
    1.33 +#endif
    1.34  }
    1.35  
    1.36  - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
    1.37 @@ -112,6 +116,7 @@
    1.38  	NSEnumerator *enumerator = [touches objectEnumerator];
    1.39  	UITouch *touch=nil;
    1.40  	
    1.41 +#if FIXME_MULTITOUCH
    1.42  	while(touch = (UITouch *)[enumerator nextObject]) {
    1.43  		/* search for the mouse slot associated with this touch */
    1.44  		int i, found = NO;
    1.45 @@ -127,6 +132,7 @@
    1.46  			}
    1.47  		}
    1.48  	}
    1.49 +#endif
    1.50  }
    1.51  
    1.52  - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
    1.53 @@ -143,6 +149,7 @@
    1.54  	NSEnumerator *enumerator = [touches objectEnumerator];
    1.55  	UITouch *touch=nil;
    1.56  	
    1.57 +#if FIXME_MULTITOUCH
    1.58  	while(touch = (UITouch *)[enumerator nextObject]) {
    1.59  		/* try to find the mouse associated with this touch */
    1.60  		int i, found = NO;
    1.61 @@ -157,6 +164,7 @@
    1.62  			}
    1.63  		}
    1.64  	}
    1.65 +#endif
    1.66  }
    1.67  
    1.68  /*