<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Mouse API suggestions and bug reports</title>
		<link>http://www.allegro.cc/forums/view/612268</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 23 Mar 2013 19:50:04 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello,</p><p>Tested on Allegro 5.1.5/Windows 8 (64bit).</p><p>1. In windowed mode <span class="source-code"><a href="http://www.allegro.cc/manual/al_grab_mouse"><span class="a">al_grab_mouse</span></a><span class="k2">(</span><span class="k2">)</span></span> grabs the mouse within display window area and not the client area. You can still move the mouse to the border where the resize cursor will appear (or to the title area etc). I think it would make way more sense if the mouse was constrained within the client area?</p><p>2. Inconsistency: <span class="source-code"><a href="http://www.allegro.cc/manual/al_set_mouse_xy"><span class="a">al_set_mouse_xy</span></a><span class="k2">(</span><span class="k2">)</span></span> sets the mouse cursor position within the display window area (including title and border area) while the mouse <span class="source-code">event.x<span class="k3">/</span>event.y</span> reports mouse position using client area coordinates (title and border area already excluded).</p><p>3. <span class="source-code"><a href="http://www.allegro.cc/manual/al_set_mouse_xy"><span class="a">al_set_mouse_xy</span></a><span class="k2">(</span><span class="k2">)</span></span> also generates <span class="source-code">ALLEGRO_EVENT_MOUSE_AXIS</span> event (should only generate <span class="source-code">ALLEGRO_EVENT_MOUSE_WARPED</span> according to the docs?). If you are trying to position mouse cursor within the code handling axis event - you get a recursive mouse axis event spam.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (simast)</author>
		<pubDate>Sat, 23 Mar 2013 19:50:04 +0000</pubDate>
	</item>
</rss>
