<?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: Android Day 4: Video cleanup, Input handling</title>
	<atom:link href="http://www.philhassey.com/blog/2010/07/23/android-day-4-video-cleanup-input-handling/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philhassey.com/blog/2010/07/23/android-day-4-video-cleanup-input-handling/</link>
	<description>game dev blog</description>
	<lastBuildDate>Fri, 06 Jan 2012 23:00:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: philhassey</title>
		<link>http://www.philhassey.com/blog/2010/07/23/android-day-4-video-cleanup-input-handling/comment-page-1/#comment-22593</link>
		<dc:creator>philhassey</dc:creator>
		<pubDate>Wed, 04 Aug 2010 16:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=395#comment-22593</guid>
		<description>@Dianne - thanks for the details on all that!</description>
		<content:encoded><![CDATA[<p>@Dianne &#8211; thanks for the details on all that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dianne Hackborn</title>
		<link>http://www.philhassey.com/blog/2010/07/23/android-day-4-video-cleanup-input-handling/comment-page-1/#comment-22592</link>
		<dc:creator>Dianne Hackborn</dc:creator>
		<pubDate>Wed, 04 Aug 2010 16:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=395#comment-22592</guid>
		<description>Hi, yeah that touch handling code is a little odd. :)

There is a blog post about it here:

http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html

Basic summary: getActionMasked() returns the action for the entire event.  There are two types of down and up.  First, ACTION_DOWN and ACTION_UP are for the first and last fingers, respectively.  For multitouch, ACTION_POINTER_DOWN and ACTION_POINTER_UP tell you about an additional finger going down or up; for these events you can call getActionIndex() for the *index* of the pointer that has changed.

Pointer indices are only meaningful for the current event (they are the raw packed current data); pointer identifiers are maintained consistently across events.  getPointerId(int) maps from an index to an id; getX(int) and getY(int) retrieve the current position of a current index; getPointerCount() returns the number of indices in that event.

If you receive an ACTION_MOVE, there has been no change in the number of active fingers, this is just a report in the change in position of all fingers.

If you only care about the current finger positions at the time of receiving the event, you shouldn&#039;t do anything with getHistoricalXxx().  These allow apps to collect all possible movement data since the last motion event report, if they aren&#039;t keeping up with the hardware reports and actually care about every possible movement.  They would be useful, for example, for a handwriting recognizer.

Also useful is this blog post on writing an app that supports multitouch but also works on pre-2.0 versions of the platform:

http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html</description>
		<content:encoded><![CDATA[<p>Hi, yeah that touch handling code is a little odd. <img src='http://www.philhassey.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There is a blog post about it here:</p>
<p><a href="http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html" rel="nofollow">http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html</a></p>
<p>Basic summary: getActionMasked() returns the action for the entire event.  There are two types of down and up.  First, ACTION_DOWN and ACTION_UP are for the first and last fingers, respectively.  For multitouch, ACTION_POINTER_DOWN and ACTION_POINTER_UP tell you about an additional finger going down or up; for these events you can call getActionIndex() for the *index* of the pointer that has changed.</p>
<p>Pointer indices are only meaningful for the current event (they are the raw packed current data); pointer identifiers are maintained consistently across events.  getPointerId(int) maps from an index to an id; getX(int) and getY(int) retrieve the current position of a current index; getPointerCount() returns the number of indices in that event.</p>
<p>If you receive an ACTION_MOVE, there has been no change in the number of active fingers, this is just a report in the change in position of all fingers.</p>
<p>If you only care about the current finger positions at the time of receiving the event, you shouldn&#8217;t do anything with getHistoricalXxx().  These allow apps to collect all possible movement data since the last motion event report, if they aren&#8217;t keeping up with the hardware reports and actually care about every possible movement.  They would be useful, for example, for a handwriting recognizer.</p>
<p>Also useful is this blog post on writing an app that supports multitouch but also works on pre-2.0 versions of the platform:</p>
<p><a href="http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html" rel="nofollow">http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomhiggins</title>
		<link>http://www.philhassey.com/blog/2010/07/23/android-day-4-video-cleanup-input-handling/comment-page-1/#comment-22550</link>
		<dc:creator>tomhiggins</dc:creator>
		<pubDate>Wed, 28 Jul 2010 05:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=395#comment-22550</guid>
		<description>Oh great, now I will get schooled by ChiRo on the droid and the desktop:)-</description>
		<content:encoded><![CDATA[<p>Oh great, now I will get schooled by ChiRo on the droid and the desktop:)-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chi-Ro</title>
		<link>http://www.philhassey.com/blog/2010/07/23/android-day-4-video-cleanup-input-handling/comment-page-1/#comment-22524</link>
		<dc:creator>Chi-Ro</dc:creator>
		<pubDate>Mon, 26 Jul 2010 05:57:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=395#comment-22524</guid>
		<description>mMmmmmm, a turn based mode for the Mobile versions of the game sounds great! 

Also, I&#039;m really looking forward to this. I&#039;ll buy it for sure.</description>
		<content:encoded><![CDATA[<p>mMmmmmm, a turn based mode for the Mobile versions of the game sounds great! </p>
<p>Also, I&#8217;m really looking forward to this. I&#8217;ll buy it for sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MichaelWC</title>
		<link>http://www.philhassey.com/blog/2010/07/23/android-day-4-video-cleanup-input-handling/comment-page-1/#comment-22516</link>
		<dc:creator>MichaelWC</dc:creator>
		<pubDate>Sat, 24 Jul 2010 05:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=395#comment-22516</guid>
		<description>Phil, I&#039;m very excited to see this port happening. I followed a link on a Risk game-request post on a forum and found Galcon. This will satisfy my need for multiplayer for sure.

I would, however, like to request something that I&#039;m not sure if you already include in your game. I&#039;d like to see a turn based mode that can operate over long periods of time. Most people I&#039;d like to play with have short periods of time (lunch hours, breaks, etc) over the course of a day when a full game just might not work. An epic week-long game would be really cool.

Also, does Galcon support gaming with particular individuals? Like if I have a few friends across town, can I choose to connect with only with them in a private game?</description>
		<content:encoded><![CDATA[<p>Phil, I&#8217;m very excited to see this port happening. I followed a link on a Risk game-request post on a forum and found Galcon. This will satisfy my need for multiplayer for sure.</p>
<p>I would, however, like to request something that I&#8217;m not sure if you already include in your game. I&#8217;d like to see a turn based mode that can operate over long periods of time. Most people I&#8217;d like to play with have short periods of time (lunch hours, breaks, etc) over the course of a day when a full game just might not work. An epic week-long game would be really cool.</p>
<p>Also, does Galcon support gaming with particular individuals? Like if I have a few friends across town, can I choose to connect with only with them in a private game?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

