[A5] ALLEGRO_KEY_PAD_ENTER
23yrold3yrold

Is there a problem with detecting ALLEGRO_KEY_PAD_ENTER, or is ALLEGRO_KEY_ENTER also always true when it is? Because the key pad enter is triggering all my if(ALLEGRO_KEY_ENTER is down) code. Should I be checking for ALLEGRO_KEY_PAD_ENTER first instead, or is this not normal?

Matthew Leverton

Which OS?

23yrold3yrold

Windows XP.

torhu

Looking at the code in wwindow.c and wkeyboard.c, it doesn't seem to check for which Enter key it is. According to MSDN it just needs to check bit 24 of WM_KEYDOWN's lParam. Shouldn't be too hard if someone feels like making a patch. Might be possible to simplify some code in _al_win_kbd_handle_key_press by checking that bit, too.

Matthew Leverton

I submitted a patch that adds support.

Thread #606792. Printed from Allegro.cc