[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to handle keyboard input
>
> I handle multiple keys by keeping a state variable for each
> interesting key. I update this state in the "down" and "up"
> functions. The game logic then reads the "current value"
> of the key from this value when it needs it.
>
Exactly what I do, except I keep a state var for EVERY key. I tend to
do things in as complete a fashion as possible... saves time later.
---------------------------------------------------------------------
To unsubscribe, e-mail: linuxgames-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: linuxgames-help@sunsite.auc.dk