Re: [AD] New event proposals

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2006-01-20, Hrvoje Ban <spoofer255@xxxxxxxxxx> wrote:
> And actually, AL_BUTTON is missing some useful information, e.g. when a
> > mouse button is clicked you almost always want to know the cursor
> > position.
> 
> If you want port your game to platform without mouse (consoles) or just want
> to support gamepads. You'll probably separate movement (so it can be
> emulated, for example with analog stick) and buttons (which will be mapped
> to gamepad buttons). Even if there is mouse nothing guaranties user will map
> action (like firing) to mouse button.

You're assuming that you're writing a specific type of game.  If you
want to collate the input devices into platformer/FPS-style input you
can do it easily on top of the existing event system design.  You could
probably then do a better job of it than Allegro would.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/