<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Keys get stuck when switching windows with ALT+TAB</title>
		<link>http://www.allegro.cc/forums/view/618735</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 28 Sep 2022 16:41:46 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am working on a game, and I noticed that when using al_key_down, if I switch windows with alt+tab, allegro will think that I am holding alt down, until I press and release it again. Anyone know anything I can do to fix this?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (promitheas)</author>
		<pubDate>Tue, 27 Sep 2022 00:17:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What version of Allegro? IIRC, this was fixed many years ago.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (torhu)</author>
		<pubDate>Tue, 27 Sep 2022 00:59:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>ALLEGRO_VERSION_STR is 5.2.7, so that&#39;s probably the version
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (promitheas)</author>
		<pubDate>Tue, 27 Sep 2022 01:08:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The headers can have a different version from the binaries. You can check the real version by printing what <span class="source-code"><a href="http://www.allegro.cc/manual/al_get_allegro_version"><span class="a">al_get_allegro_version</span></a></span> returns. Did you build the binaries yourself?</p><p>APPEND:<br />Maybe I&#39;m mistaken, sorry. You can try calling <a href="https://liballeg.org/a5docs/trunk/keyboard.html#al_clear_keyboard_state">al_clear_keyboard_state</a> when you get the <span class="source-code">ALLEGRO_EVENT_DISPLAY_SWITCH_OUT</span> event, that should fix it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (torhu)</author>
		<pubDate>Tue, 27 Sep 2022 01:18:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The event system is preferable to the state system. Look for keyboard events, not states. It doesn&#39;t have this problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Tue, 27 Sep 2022 18:24:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks, al_clear_keyboard_state() fixed it.<br />To use it I had to define ALLEGRO_UNSTABLE. Will it be wrong to only define ALLEGRO_UNSTABLE when I want to use functions that require it, or do I have to always define it before including anything from ALLEGRO?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (promitheas)</author>
		<pubDate>Tue, 27 Sep 2022 18:47:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>#define ing ALLEGRO_UNSTABLE allows you to access the unstable parts of allegro. It is optional.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 28 Sep 2022 16:41:46 +0000</pubDate>
	</item>
</rss>
