[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-devel] I'm back !!!

From: Kenneth Gangstoe
Subject: Re: [Adonthell-devel] I'm back !!!
Date: Mon, 18 Feb 2002 13:15:39 +0100
User-agent: Mutt/1.3.24i

Quoting Alexandre Courbot (address@hidden):
> > Yes, that would be a lot cleaner. So you would basically register a
> > callback if you want to get notified of keypresses and all that.
> Callbacks? Mmm, maybe that's a bit much. How about a queue of cathced
> events (similar to SDL)?
> > As we only care for a dozend buttons or so, you might even have individual
> > callbacks for each key (or groups of keys). Like one callback for movement
> > keys, another one for action keys, etc.
> > 
> > Just a random idea; not sure if it's feasible or useful. 
> Well, I'm rather for limiting callbacks at maximum (for the window
> system and such, where they are nearly mandatory) - but I don't know
> exactly what you have in mind.

Have you ever considered signals? They are a very powerful mechanism.

> > Completely right. In the main programm we should just use the keys we
> > defined ourselves. And the input system would just map physical keys and
> > buttons and whatnot to those logical keys.
> Exact. This would also make the higher-level game layer totally
> independant from SDL. That way, if we decide to make Adonthell runnable
> on Clanlib, or anything else too, we could do it by only tweaking a bit
> the image, audio and input classes.

Hey, now you're talking :)

- Sphair, the lurker.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]