RE: [AD] standing Windows issues

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


>  - There's a problem with Allegro registering a key press (pause I
think)
> when it regains focus after having been unfocused.


i have done some investigation.
its key 93.. which according to C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h line 427, is the windows virtual key VK_APPS

not having a clue about what this key is, i asked google..
one page i found, although not directly linking them, but showing an image of the windows menu key (that key below your right hand, between the alt and control) implied it had something to do with context menus.
MSDN refers to  VK_APPS  as the  "Applications key (Natural keyboard)"


however, im not sure if any of that is relevant, as /include/allegro/keyboard.h says key 93 is
#define KEY_PAUSE     93

which 93 are we talking about ?


anyhow, i have also found something.
in allegro 4.1.15 in /src/win/wkeybd.c line 140-ish there is some code for PAUSE key
in the older 4.1.14  same file, line 140  there is no PAUSE key code.

the problem was introduced in 4.1.15

the change log for 4.1.15 says
"Eric Botcazou made KEY_PAUSE work properly in windows."
















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