Re: [AD] Bug in readkey() with numeric keypad?

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


On Fri, 2005-12-02 at 18:42 +0000, Chris Jones wrote:
> 
> > But if you look at src/win/wkeybd.c, there's some special checks for
> > numpad keys starting around like 213. Maybe simply removing those
> > will restore the old behavior?
> 
> I've attached a patch that fixes this. Rather than forcing NumLock to be on,
> it checks NumLock and adjusts the keycode only if appropriate

This will leave the KEY_* untouched, and simply change the ASCII from
numerical keys to 0, in case NumLock is on, right?

I think we should apply it to both branches then..

-- 
Elias Pschernig





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