Re: [AD] user data for timers |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2009-09-20, Matthew Leverton <meffer@xxxxxxxxxx> wrote:
> On Thu, Sep 17, 2009 at 6:34 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> > How about?
> >
> > void al_set_event_source_data(ALLEGRO_EVENT_SOURCE *source, intptr_t data);
> > intptr_t al_get_event_source_data(ALLEGRO_EVENT_SOURCE *source);
> >
> Works for me. (Patch attached.)
Looks fine, just needs some documentation. The al_get_event_source_data
parameter can be const, I missed that earlier.
Peter