Re: [AD] user-defined events |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2008-09-27, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> Here is a proposal for allowing user-defined events.
Committed with some modifications.
As discussed, it's the user's own problem to manage dynamically allocate
memory which events may point to.
I made the data1..data4 fields all have type `intptr_t' so they can be
used to hold integers and pointers alike.
al_emit_user_event() returns true if the event actually was delivered.
Peter