Mercurial > sdl-ios-xcode
annotate test/.cvsignore @ 1348:40d0975c1769
Date: Mon, 6 Feb 2006 11:41:04 -0500
From: "mystml@adinet.com.uy"
Subject: [SDL] ALT-F4 using DirectX
My game isn't getting SDL_QUIT when I press ALT-F4 using the DirectX
driver; it does get SDL_QUIT when I press the red X in the window.
I tracked this down to DX5_HandleMessage() in SDL_dx5events.c;
WM_SYSKEYDOWN is being trapped and ignored which causes Windows not to post
a WM_CLOSE, hence no SDL_QUIT is being generated.
The relevant code is this :
/* The keyboard is handled via DirectInput */
case WM_SYSKEYUP:
case WM_SYSKEYDOWN:
case WM_KEYUP:
case WM_KEYDOWN: {
/* Ignore windows keyboard messages */;
}
return(0);
If I comment the WM_SYSKEYDOWN case, it falls through DefWindowProc() and
ALT-F4 starts working again.
I'm not sure about the best way to fix this. One option is handling ALT-F4
as a particular case somehow, but doesn't sound good. Another option would
be to handle WM_SYSKEYDOWN separately and breaking instead of returning 0,
so processing falls through and goes to DefWindowProc which does The Right
Thing (TM). This seems to be the minimal change that makes ALT-F4 work and
normal keyboard input continues to work.
Does this sound reasonable? Am I overlooking anything? Do I submit a patch?
--Gabriel
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 08 Feb 2006 17:19:43 +0000 |
parents | c9ae23d221ea |
children | d94b080ff6ce |
rev | line source |
---|---|
416 | 1 Makefile.in |
2 Makefile | |
3 configure | |
4 config.cache | |
5 config.log | |
6 config.status | |
754
623b453a3219
Fixed "dist" make target for newer versions of automake
Sam Lantinga <slouken@libsdl.org>
parents:
676
diff
changeset
|
7 autom4te* |
416 | 8 aclocal.m4 |
1285
c9ae23d221ea
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1249
diff
changeset
|
9 SDL.dll |
c9ae23d221ea
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1249
diff
changeset
|
10 stdout.txt |
c9ae23d221ea
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1249
diff
changeset
|
11 stderr.txt |
416 | 12 checkkeys |
13 graywin | |
14 loopwave | |
15 testalpha | |
16 testbitmap | |
1249
e6a82dcdce09
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
817
diff
changeset
|
17 testblitspeed |
416 | 18 testcdrom |
817
700c9c5c923b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
754
diff
changeset
|
19 testcpuinfo |
1249
e6a82dcdce09
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
817
diff
changeset
|
20 testdyngl |
e6a82dcdce09
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
817
diff
changeset
|
21 testendian |
416 | 22 testerror |
23 testgamma | |
24 testgl | |
25 testhread | |
26 testjoystick | |
27 testkeys | |
28 testlock | |
29 testoverlay | |
676
8b58eeef4576
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
416
diff
changeset
|
30 testoverlay2 |
416 | 31 testpalette |
32 testsem | |
33 testsprite | |
34 testtimer | |
35 testtypes | |
36 testver | |
37 testvidinfo | |
38 testwin | |
39 testwm | |
40 threadwin |