Mercurial > sdl-ios-xcode
annotate include/Makefile.am @ 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 | d02b552e5304 |
children | 22f39393668a |
rev | line source |
---|---|
0 | 1 # The input Makefile for SDL header files |
2 | |
3 # The directory where the include files will be installed | |
4 libSDLincludedir = $(includedir)/SDL | |
5 | |
6 # Which header files to install | |
7 libSDLinclude_HEADERS = \ | |
8 SDL.h \ | |
9 SDL_active.h \ | |
10 SDL_audio.h \ | |
11 SDL_byteorder.h \ | |
12 SDL_cdrom.h \ | |
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
13 SDL_config.h \ |
0 | 14 SDL_copying.h \ |
739
22dbf364c017
Added SDL_HasMMX(), SDL_Has3DNow(), SDL_HasSSE() in SDL_cpuinfo.h
Sam Lantinga <slouken@libsdl.org>
parents:
652
diff
changeset
|
15 SDL_cpuinfo.h \ |
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
16 SDL_ctype.h \ |
0 | 17 SDL_endian.h \ |
18 SDL_error.h \ | |
19 SDL_events.h \ | |
20 SDL_getenv.h \ | |
21 SDL_joystick.h \ | |
22 SDL_keyboard.h \ | |
23 SDL_keysym.h \ | |
652
a3bb929c9e2f
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
296
diff
changeset
|
24 SDL_loadso.h \ |
0 | 25 SDL_main.h \ |
26 SDL_mouse.h \ | |
27 SDL_mutex.h \ | |
293
585a7e1285ae
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
214
diff
changeset
|
28 SDL_name.h \ |
214
0e5d6dd77bda
Added platform independent OpenGL header - SDL_opengl.h
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
29 SDL_opengl.h \ |
0 | 30 SDL_quit.h \ |
31 SDL_rwops.h \ | |
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
32 SDL_stdarg.h \ |
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
33 SDL_stdlib.h \ |
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
34 SDL_string.h \ |
0 | 35 SDL_syswm.h \ |
36 SDL_thread.h \ | |
37 SDL_timer.h \ | |
38 SDL_types.h \ | |
39 SDL_version.h \ | |
40 SDL_video.h \ | |
1330
450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
739
diff
changeset
|
41 SDL_windows.h \ |
0 | 42 begin_code.h \ |
43 close_code.h | |
1341
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
44 |
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
45 EXTRA_DIST = \ |
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
46 SDL_config.h.in \ |
d02b552e5304
Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org>
parents:
1330
diff
changeset
|
47 SDL_config.h.minimal |