annotate test/Makefile.in @ 4384:6800e2560310 SDL-1.2

Fixed bugs #882 and 865, re-opening bug #634 Ronald Lamprecht to SDL Hi, Sam Lantinga wrote: The problem with that fix is that it breaks IME events again. Maybe we can handle keyboard events differently to prevent this issue? Spending an hour reading MSDN, analysing SDL and another hour testing the reality on XP I am really wondering how patch r4990 could have ever worked in any situation. It's main effect is to break the unicode translation and causing spurious activation events! Why does TranslateMessage(&msg) nothing useful? Simply because it does not affect "msg" at all! All keyboard events are dispatched without the slightest change (see MSDN). TranslateMessage() just appends additional WM_CHAR, WM_DEADCHAR, WM_SYSCHAR, WM_SYSDEADCHAR event messages to the queue. But I could not find any SDL event handling routine that catches these events and transforms them to proper SDL keyevents while eliminating the corresponding WM_KEYDOWN, etc. events. Thus any IME input like the '@' generated by "Alt + 6(Numpad) + 4(Numpad)" is simply lost. But the situation is even worse! Up to r4990 the TranslateKey()/ToUnicode() calls did evaluate dead keys and did deliver proper key events for subsequent key strokes like '´' + 'e' resulting in 'é'. ToUnicode() needs proper key state informations to be able to handle these substitutions. But unfortunatly TranslateMessage() needs the same state information and eats it up while generating the WM_CHAR messages :-( Thus the current 1.2.14 breakes the partial IME support of previous releases, too. The key state race condition between ToUnicode() and TranslateMessage() requires to avoid any ToUnicode() usage for receiving proper WM_CHAR, etc. messages generated by TranslateMessage(). (Yes - the '@' and 'é' appear as WM_CHAR messages when unicode is switched off). The spurious SDL activation events are *not* caused by additional WM_ACTIVATE Windows messages! Besides DIB_HandleMessage() SDL_PrivateAppActive() is called by another source which I am not yet aware of - any hints? Thus I do strongly recommend the deletion of the TranslateMessage(&msg) call as a quick fix. A proper support of unicode and IME requires a clean SDL keyboard input concept first. Which SDL keyboards events should be transmitted to the app when the user presses '´' + 'e' ? Within the current unicode handling the first key stroke is hidden. Even though ToUnicode() delivers the proper key SDL does ignore it in TranslateKey(). Just the composed key event is transmitted to the app. That is what you expect for text input, but the app can no longer use keys like '^' as a key button because it will never receive a key event for it! With a given concept it seems to be necessary to regenerate SDL key events out of the WM_CHAR, etc. events and to drop all related direct WM_KEYDOWN, etc. events while the remaining basic WM_KEYDOWN, etc. events would still have to result in SDL key events. Anyway the source of the spurious WM_ACTIVATE should be located to avoid future trouble. Greets, Ronald
author Sam Lantinga <slouken@libsdl.org>
date Tue, 17 Nov 2009 04:59:13 +0000
parents eb60dd682e5e
children
rev   line source
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
1 # Makefile to build the SDL tests
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
2
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
3 srcdir = @srcdir@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
4
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
5 CC = @CC@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
6 EXE = @EXE@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
7 CFLAGS = @CFLAGS@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
8 LIBS = @LIBS@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
9
4036
eb60dd682e5e Whoops, reverted changes that shouldn't have been committed with #3197.
Ryan C. Gordon <icculus@icculus.org>
parents: 4035
diff changeset
10 TARGETS = checkkeys$(EXE) graywin$(EXE) loopwave$(EXE) testalpha$(EXE) testbitmap$(EXE) testblitspeed$(EXE) testcdrom$(EXE) testcursor$(EXE) testdyngl$(EXE) testerror$(EXE) testfile$(EXE) testgamma$(EXE) testgl$(EXE) testhread$(EXE) testiconv$(EXE) testjoystick$(EXE) testkeys$(EXE) testlock$(EXE) testoverlay2$(EXE) testoverlay$(EXE) testpalette$(EXE) testplatform$(EXE) testsem$(EXE) testsprite$(EXE) testtimer$(EXE) testver$(EXE) testvidinfo$(EXE) testwin$(EXE) testwm$(EXE) threadwin$(EXE) torturethread$(EXE) testloadso$(EXE)
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
11
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
12 all: $(TARGETS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
13
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
14 checkkeys$(EXE): $(srcdir)/checkkeys.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
15 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
16
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
17 graywin$(EXE): $(srcdir)/graywin.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
18 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
19
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
20 loopwave$(EXE): $(srcdir)/loopwave.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
21 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
22
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
23 testalpha$(EXE): $(srcdir)/testalpha.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
24 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
25
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
26 testbitmap$(EXE): $(srcdir)/testbitmap.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
27 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
28
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
29 testblitspeed$(EXE): $(srcdir)/testblitspeed.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
30 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
31
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
32 testcdrom$(EXE): $(srcdir)/testcdrom.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
33 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
34
1858
d3ac464fb3c1 Add program to test mouse cursor change
Patrice Mandin <patmandin@gmail.com>
parents: 1501
diff changeset
35 testcursor$(EXE): $(srcdir)/testcursor.c
d3ac464fb3c1 Add program to test mouse cursor change
Patrice Mandin <patmandin@gmail.com>
parents: 1501
diff changeset
36 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d3ac464fb3c1 Add program to test mouse cursor change
Patrice Mandin <patmandin@gmail.com>
parents: 1501
diff changeset
37
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
38 testdyngl$(EXE): $(srcdir)/testdyngl.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
39 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
40
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
41 testerror$(EXE): $(srcdir)/testerror.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
42 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
43
1453
2eb75f8a32ca Date: Mon, 27 Feb 2006 17:01:43 +0100
Sam Lantinga <slouken@libsdl.org>
parents: 1421
diff changeset
44 testfile$(EXE): $(srcdir)/testfile.c
2eb75f8a32ca Date: Mon, 27 Feb 2006 17:01:43 +0100
Sam Lantinga <slouken@libsdl.org>
parents: 1421
diff changeset
45 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
2eb75f8a32ca Date: Mon, 27 Feb 2006 17:01:43 +0100
Sam Lantinga <slouken@libsdl.org>
parents: 1421
diff changeset
46
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
47 testgamma$(EXE): $(srcdir)/testgamma.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
48 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
49
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
50 testgl$(EXE): $(srcdir)/testgl.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
51 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
52
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
53 testhread$(EXE): $(srcdir)/testhread.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
54 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
55
1501
73dc5d39bbf8 Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
Sam Lantinga <slouken@libsdl.org>
parents: 1453
diff changeset
56 testiconv$(EXE): $(srcdir)/testiconv.c
73dc5d39bbf8 Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
Sam Lantinga <slouken@libsdl.org>
parents: 1453
diff changeset
57 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
73dc5d39bbf8 Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
Sam Lantinga <slouken@libsdl.org>
parents: 1453
diff changeset
58
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
59 testjoystick$(EXE): $(srcdir)/testjoystick.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
60 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
61
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
62 testkeys$(EXE): $(srcdir)/testkeys.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
63 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
64
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
65 testlock$(EXE): $(srcdir)/testlock.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
66 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
67
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
68 testoverlay2$(EXE): $(srcdir)/testoverlay2.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
69 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
70
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
71 testoverlay$(EXE): $(srcdir)/testoverlay.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
72 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
73
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
74 testpalette$(EXE): $(srcdir)/testpalette.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
75 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
76
1421
638da75f9ab8 testplatform replaces testtypes, testendian, and testcpuinfo
Sam Lantinga <slouken@libsdl.org>
parents: 1380
diff changeset
77 testplatform$(EXE): $(srcdir)/testplatform.c
638da75f9ab8 testplatform replaces testtypes, testendian, and testcpuinfo
Sam Lantinga <slouken@libsdl.org>
parents: 1380
diff changeset
78 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
638da75f9ab8 testplatform replaces testtypes, testendian, and testcpuinfo
Sam Lantinga <slouken@libsdl.org>
parents: 1380
diff changeset
79
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
80 testsem$(EXE): $(srcdir)/testsem.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
81 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
82
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
83 testsprite$(EXE): $(srcdir)/testsprite.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
84 $(CC) -o $@ $? $(CFLAGS) $(LIBS) @MATHLIB@
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
85
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
86 testtimer$(EXE): $(srcdir)/testtimer.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
87 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
88
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
89 testver$(EXE): $(srcdir)/testver.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
90 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
91
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
92 testvidinfo$(EXE): $(srcdir)/testvidinfo.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
93 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
94
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
95 testwin$(EXE): $(srcdir)/testwin.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
96 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
97
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
98 testwm$(EXE): $(srcdir)/testwm.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
99 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
100
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
101 threadwin$(EXE): $(srcdir)/threadwin.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
102 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
103
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
104 torturethread$(EXE): $(srcdir)/torturethread.c
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
105 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
106
3892
b25dd008167b Added a test program for loadso subsystem.
Ryan C. Gordon <icculus@icculus.org>
parents: 1858
diff changeset
107 testloadso$(EXE): $(srcdir)/testloadso.c
b25dd008167b Added a test program for loadso subsystem.
Ryan C. Gordon <icculus@icculus.org>
parents: 1858
diff changeset
108 $(CC) -o $@ $? $(CFLAGS) $(LIBS)
b25dd008167b Added a test program for loadso subsystem.
Ryan C. Gordon <icculus@icculus.org>
parents: 1858
diff changeset
109
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
110
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
111 clean:
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
112 rm -f $(TARGETS)
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
113
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
114 distclean: clean
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
115 rm -f Makefile
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
116 rm -f config.status config.cache config.log
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
117 rm -rf $(srcdir)/autom4te*