<?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: Cocos2d-iPhone Simple to Check if the Touch Input Was Swipe Up</title>
	<atom:link href="http://www.dbuggr.com/leothenerd/cocos2d-iphone-simple-check-touch-input-swipe-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbuggr.com/leothenerd/cocos2d-iphone-simple-check-touch-input-swipe-2/</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/cocos2d-iphone-simple-check-touch-input-swipe-2/comment-page-1/#comment-1368</link>
		<dc:creator>leothenerd</dc:creator>
		<pubDate>Mon, 04 Jan 2010 00:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbuggr.com/leothenerd/cocos2d-iphone-simple-check-touch-input-swipe-2/#comment-1368</guid>
		<description>&lt;code&gt;
static inline bool icWasSwipeUp(NSSet * touches ,UIEvent * event)
{
	NSSet *allTouches = [event allTouches];
	
	if(1 != [allTouches count])
		return false;
	
	UITouch *touch = [[allTouches allObjects] objectAtIndex:0];
	
	CGPoint start = [touch previousLocationInView:[touch view]];
	CGPoint end = [touch locationInView:[touch view]];
	start = _icRotateRealWorld(start);
	end = _icRotateRealWorld(end);
	
	if(start.y &lt; end.y)
	{
		return true;
	}
	
	return false;
}

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><pre><code>
static inline bool icWasSwipeUp(NSSet * touches ,UIEvent * event)
{
&nbsp;&nbsp;NSSet *allTouches = [event allTouches];
&nbsp;&nbsp;
&nbsp;&nbsp;if(1 != [allTouches count])
&nbsp;&nbsp;&nbsp;&nbsp;return false;
&nbsp;&nbsp;
&nbsp;&nbsp;UITouch *touch = [[allTouches allObjects] objectAtIndex:0];
&nbsp;&nbsp;
&nbsp;&nbsp;CGPoint start = [touch previousLocationInView:[touch view]];
&nbsp;&nbsp;CGPoint end = [touch locationInView:[touch view]];
&nbsp;&nbsp;start = _icRotateRealWorld(start);
&nbsp;&nbsp;end = _icRotateRealWorld(end);
&nbsp;&nbsp;
&nbsp;&nbsp;if(start.y &lt; end.y)
&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! -->
