<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>   ASSERT(ALLEGRO_EVENT_TYPE_IS_USER(event-&gt;any.type));</title>
		<link>http://www.allegro.cc/forums/view/615737</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 16 Sep 2015 23:59:08 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hey guys this has been driving me crazy for a while now.</p><p>On line 225 of latest A5 from Git in evtsrc.c there is this line of code :
</p><div class="source-code snippet"><div class="inner"><pre>   <a href="http://www.allegro.cc/manual/ASSERT"><span class="a">ASSERT</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/ALLEGRO_EVENT_TYPE_IS_USER"><span class="a">ALLEGRO_EVENT_TYPE_IS_USER</span></a><span class="k2">(</span>event-&gt;any.type<span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

What it boils down to is that it prevents users from simulating allegro events. In reality this is unnecessary.</p><p>In my ManyMouse project I made an adapter from the win32 RawInput API which takes Windows VK_ vkeys and maps them to ALLEGRO_KEY_* allegro keys so I could use RawInput directly without having to have an allegro window active and onscreen because I can use the RawInput API&#39;s input without having to have an active or onscreen window.</p><p>But this ASSERT prevents me from simulating actual ALLEGRO_EVENT_KEY_DOWN and ALLEGRO_EVENT_KEY_UP events, which is a giant pain.</p><p>Can we remove this? I don&#39;t think it really serves any useful purpose other than to limit the user&#39;s ability to emit allegro events with <span class="source-code"><a href="http://www.allegro.cc/manual/al_emit_user_event"><span class="a">al_emit_user_event</span></a></span>.</p><p>Thanks for taking a look. I can submit a patch, but it&#39;s a one line change so I figured it didn&#39;t really need a patch. Let me know what you guys think.</p><p>Thanks,<br />Edgar</p><p>PS. Also, it is preventing me from using a debug build of allegro, which I need to debug my program. :/
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 16 Sep 2015 06:26:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Allegro&#39;s source is now hosted on github: <a href="https://github.com/liballeg/allegro5">https://github.com/liballeg/allegro5</a></p><p>Coincidentally, the change you want has been made about a month ago <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Wed, 16 Sep 2015 09:03:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Oh okay. So my Git isn&#39;t up to date. How do I change the master repository in use? Or should I just clone A5 again?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 16 Sep 2015 23:04:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><pre>git remote set-url origin git@github.com:liballeg/allegro5.git</pre><p>

Or even easier, edit .git/config and replace the old URL with this one.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Wed, 16 Sep 2015 23:16:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I changed the .git/config file to use &quot;<a href="https://github.com/liballeg/allegro5.git">https://github.com/liballeg/allegro5.git</a>&quot; and it is up to date now. Thanks for the advice. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><p>Although this raises the question of having an out of date repository hosted on sf.net. I think that could easily confuse some people. Is there any way to make the SF repo a mirror of GitHub?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 16 Sep 2015 23:55:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Removing the assert is the simple fix &quot;for now&quot;. A more comprehensive fix, (e.g. al_emit_keyboard_event()) will probably be added in the future.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Wed, 16 Sep 2015 23:57:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yeah, but then you have to write a al_emit_X_event function for every event type there is. It would be better to just have a single function that is capable of emitting any kind of event. IMHO.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 16 Sep 2015 23:59:08 +0000</pubDate>
	</item>
</rss>
