<?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: Wii Nunchuck Mouse</title>
	<atom:link href="http://www.uchobby.com/index.php/2008/04/08/wii-nunchuck-mouse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uchobby.com/index.php/2008/04/08/wii-nunchuck-mouse/</link>
	<description>Microcontrollers Electronics Hobby</description>
	<lastBuildDate>Thu, 02 Sep 2010 04:32:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: JPC</title>
		<link>http://www.uchobby.com/index.php/2008/04/08/wii-nunchuck-mouse/comment-page-1/#comment-1177</link>
		<dc:creator>JPC</dc:creator>
		<pubDate>Sun, 13 Jul 2008 08:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/index.php/2008/04/08/wii-nunchuck-mouse/#comment-1177</guid>
		<description>Hi,

Thanks for great article. I&#039;ve made some improvements on the autoit code to emulate the doubling of mickey / pixels ratio when mouse speed go over a certain value (needed for large movements). In my case, value readed is divided by two (no change from original code) when absolute value is under 40 and mulitiplied by two when &gt; 40 (the modification). This allows faster displacements when joystck is at its max.

JPC


Original code
	$temp = _CommReadByte(1)
	$moveX = ($temp - 63) / 2

	$temp = _CommReadByte(1)
	$moveY = ($temp - 63) / 2

	$mouse = MouseGetPos()


Is replaced with :
	$temp = _CommReadByte(1)
	$moveX = ($temp - 63)

	if ( ($moveX &gt; 0) and ($moveX  -40)) Then
		$moveX = $moveX / 2
	else
		$moveX = $moveX * 2
	EndIf
	$temp = _CommReadByte(1)
	$moveY = ($temp - 63)

	if ( ($moveY &gt; 0) and ($moveY  -40)) Then
		$moveY = $moveY / 2
	else
		$moveY = $moveY * 2
	EndIf

	$mouse = MouseGetPos()</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for great article. I&#8217;ve made some improvements on the autoit code to emulate the doubling of mickey / pixels ratio when mouse speed go over a certain value (needed for large movements). In my case, value readed is divided by two (no change from original code) when absolute value is under 40 and mulitiplied by two when &gt; 40 (the modification). This allows faster displacements when joystck is at its max.</p>
<p>JPC</p>
<p>Original code<br />
	$temp = _CommReadByte(1)<br />
	$moveX = ($temp &#8211; 63) / 2</p>
<p>	$temp = _CommReadByte(1)<br />
	$moveY = ($temp &#8211; 63) / 2</p>
<p>	$mouse = MouseGetPos()</p>
<p>Is replaced with :<br />
	$temp = _CommReadByte(1)<br />
	$moveX = ($temp &#8211; 63)</p>
<p>	if ( ($moveX &gt; 0) and ($moveX  -40)) Then<br />
		$moveX = $moveX / 2<br />
	else<br />
		$moveX = $moveX * 2<br />
	EndIf<br />
	$temp = _CommReadByte(1)<br />
	$moveY = ($temp &#8211; 63)</p>
<p>	if ( ($moveY &gt; 0) and ($moveY  -40)) Then<br />
		$moveY = $moveY / 2<br />
	else<br />
		$moveY = $moveY * 2<br />
	EndIf</p>
<p>	$mouse = MouseGetPos()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dfowler</title>
		<link>http://www.uchobby.com/index.php/2008/04/08/wii-nunchuck-mouse/comment-page-1/#comment-1176</link>
		<dc:creator>dfowler</dc:creator>
		<pubDate>Sat, 19 Apr 2008 23:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.uchobby.com/index.php/2008/04/08/wii-nunchuck-mouse/#comment-1176</guid>
		<description>Frank provided a detailed code breakdown at the link below
http://www.uchobby.com/index.php/2008/04/19/wii-nunchuck-mouse-code-breakdown/</description>
		<content:encoded><![CDATA[<p>Frank provided a detailed code breakdown at the link below<br />
<a href="http://www.uchobby.com/index.php/2008/04/19/wii-nunchuck-mouse-code-breakdown/" rel="nofollow">http://www.uchobby.com/index.php/2008/04/19/wii-nunchuck-mouse-code-breakdown/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
