<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Coocs2d-iPhone Simple Function to Check if the Touch Input Was Drag Left</title>
	<atom:link href="http://www.dbuggr.com/leothenerd/coocs2d-iphone-simple-function-check-touch-input-drag-left/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbuggr.com/leothenerd/coocs2d-iphone-simple-function-check-touch-input-drag-left/</link>
	<description>Share Knowledge &#38; Be Rewarded</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:13:48 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: leothenerd</title>
		<link>http://www.dbuggr.com/leothenerd/coocs2d-iphone-simple-function-check-touch-input-drag-left/comment-page-1/#comment-1370</link>
		<dc:creator>leothenerd</dc:creator>
		<pubDate>Mon, 04 Jan 2010 00:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbuggr.com/leothenerd/coocs2d-iphone-simple-function-check-touch-input-drag-left/#comment-1370</guid>
		<description>&lt;code&gt;
-(BOOL) icWasDragLeft:(NSSet *)touches :(UIEvent *)event
{
	NSSet *allTouches = [event allTouches];
	
	if(2 != [allTouches count])
		return FALSE;
	
	UITouch *touch = [[allTouches allObjects] objectAtIndex:0];
	
	CGPoint start1 = [touch previousLocationInView:[touch view]];
	CGPoint end1 = [touch locationInView:[touch view]];
	start1 = _icRotateRealWorld(start1);
	end1 = _icRotateRealWorld(end1);
	
	touch = [[allTouches allObjects] objectAtIndex:1];
	
	CGPoint start2 = [touch previousLocationInView:[touch view]];
	CGPoint end2 = [touch locationInView:[touch view]];
	start2 = _icRotateRealWorld(start2);
	end2 = _icRotateRealWorld(end2);
	
	if(start1.x &gt; end1.x &amp;&amp; start2.x &gt; end2.x)
	{
		return TRUE;
	}
	
	return FALSE;
}

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><pre><code>
-(BOOL) icWasDragLeft:(NSSet *)touches :(UIEvent *)event
{
&nbsp;&nbsp;NSSet *allTouches = [event allTouches];
&nbsp;&nbsp;
&nbsp;&nbsp;if(2 != [allTouches count])
&nbsp;&nbsp;&nbsp;&nbsp;return FALSE;
&nbsp;&nbsp;
&nbsp;&nbsp;UITouch *touch = [[allTouches allObjects] objectAtIndex:0];
&nbsp;&nbsp;
&nbsp;&nbsp;CGPoint start1 = [touch previousLocationInView:[touch view]];
&nbsp;&nbsp;CGPoint end1 = [touch locationInView:[touch view]];
&nbsp;&nbsp;start1 = _icRotateRealWorld(start1);
&nbsp;&nbsp;end1 = _icRotateRealWorld(end1);
&nbsp;&nbsp;
&nbsp;&nbsp;touch = [[allTouches allObjects] objectAtIndex:1];
&nbsp;&nbsp;
&nbsp;&nbsp;CGPoint start2 = [touch previousLocationInView:[touch view]];
&nbsp;&nbsp;CGPoint end2 = [touch locationInView:[touch view]];
&nbsp;&nbsp;start2 = _icRotateRealWorld(start2);
&nbsp;&nbsp;end2 = _icRotateRealWorld(end2);
&nbsp;&nbsp;
&nbsp;&nbsp;if(start1.x &gt; end1.x &amp;&amp; start2.x &gt; end2.x)
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;return TRUE;
&nbsp;&nbsp;}
&nbsp;&nbsp;
&nbsp;&nbsp;return FALSE;
}

</code></pre></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
