<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>get_mouse_mickeys(...)</title>
		<link>http://www.allegro.cc/forums/view/587250</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 28 Aug 2006 01:28:51 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>what is the difference between</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">int</span> xoff, yoff<span class="k2">;</span>

<a href="http://www.allegro.cc/manual/get_mouse_mickeys" target="_blank"><span class="a">get_mouse_mickeys</span></a><span class="k2">(</span><span class="k3">&amp;</span>xoff, <span class="k3">&amp;</span>yoff<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

and </p><div class="source-code snippet"><div class="inner"><pre><span class="k1">int</span> oldx, oldy<span class="k2">;</span>
<span class="k1">int</span> xoff, yoff<span class="k2">;</span>
xoff <span class="k3">=</span> <span class="k2">(</span><a href="http://www.allegro.cc/manual/mouse_x" target="_blank"><span class="a">mouse_x</span></a> <span class="k3">-</span> oldx<span class="k2">)</span><span class="k2">;</span>
yoff <span class="k3">=</span> <span class="k2">(</span><a href="http://www.allegro.cc/manual/mouse_y" target="_blank"><span class="a">mouse_y</span></a> <span class="k3">-</span> oldy<span class="k2">)</span><span class="k2">;</span>
oldx <span class="k3">=</span> <a href="http://www.allegro.cc/manual/mouse_x" target="_blank"><span class="a">mouse_x</span></a><span class="k2">;</span>
oldy <span class="k3">=</span> <a href="http://www.allegro.cc/manual/mouse_y" target="_blank"><span class="a">mouse_y</span></a><span class="k2">;</span>
</pre></div></div><p>

i ask cause the second way works how i want/expect but the mouse mickeys dont work how i want/expect.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (adamk kromm)</author>
		<pubDate>Sun, 27 Aug 2006 02:32:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Try putting a position_mouse(SCREEN_W/2, SCREEN_H/2) in there and you&#39;ll see a big difference. Or try moving the mouse past edge of the screen.
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
i ask cause the second way works how i want/expect but the mouse mickeys dont work how i want/expect
</p></div></div><p>
And how do you expect them to work?</p><p>And for God&#39;s sake, use some capitalization. The shift key on your keyboard isn&#39;t just decorative.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Sun, 27 Aug 2006 02:35:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m using it to rotate a camera in a OpenGL program. </p><p>The second way the camera rotates fine, but the first way, the camera will move a few degrees then go back to where it started.</p><p>EDIT:: nvm I found the error was in another part of my code.  And that the two above work the same. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (adamk kromm)</author>
		<pubDate>Sun, 27 Aug 2006 02:50:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>They don&#39;t work the same cross platform. Not all platforms allow mose events once the mouse leaves the window (or hits the edge of the screen) - in which case mouse_x/y will no longer be updated but get_mouse_mickeys() will do something clever to fake continuous mouse movement.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sun, 27 Aug 2006 03:58:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I cant seem to keep the mouse inside the screen on osx. Regardless of where I put position_mouse(320,240)( before or after get_mouse_mickeys ), the x,y output from get_mouse_mickeys is always 0. Any ideas? Allegro 4.2.1.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Mon, 28 Aug 2006 01:28:51 +0000</pubDate>
	</item>
</rss>
