Hey guys this has been driving me crazy for a while now.
On line 225 of latest A5 from Git in evtsrc.c there is this line of code :
What it boils down to is that it prevents users from simulating allegro events. In reality this is unnecessary.
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's input without having to have an active or onscreen window.
But this ASSERT prevents me from simulating actual ALLEGRO_EVENT_KEY_DOWN and ALLEGRO_EVENT_KEY_UP events, which is a giant pain.
Can we remove this? I don't think it really serves any useful purpose other than to limit the user's ability to emit allegro events with al_emit_user_event.
Thanks for taking a look. I can submit a patch, but it's a one line change so I figured it didn't really need a patch. Let me know what you guys think.
PS. Also, it is preventing me from using a debug build of allegro, which I need to debug my program. :/