Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » [A5] ALLEGRO_KEY_PAD_ENTER

This thread is locked; no one can reply to it. rss feed Print
[A5] ALLEGRO_KEY_PAD_ENTER
23yrold3yrold
Member #1,134
March 2001
avatar

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?

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Matthew Leverton
Supreme Loser
January 1999
avatar

23yrold3yrold
Member #1,134
March 2001
avatar

Windows XP.

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

torhu
Member #2,727
September 2002
avatar

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
avatar

I submitted a patch that adds support.

Go to: