![]() |
|
[A5] ALLEGRO_KEY_PAD_ENTER |
23yrold3yrold
Member #1,134
March 2001
![]() |
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
Supreme Loser
January 1999
![]() |
Which OS? |
23yrold3yrold
Member #1,134
March 2001
![]() |
Windows XP. -- |
torhu
Member #2,727
September 2002
![]() |
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
Supreme Loser
January 1999
![]() |
I submitted a patch that adds support. |
|