Mercurial > sdl-ios-xcode
annotate VisualC/tests/testsprite/testsprite.dsp @ 2860:6ce28e5287e9
Date: Sun, 07 Dec 2008 13:35:23 +0100
From: Couriersud
Subject: SDL: Mouse last_x, last_y into SDL_Mouse
the attached diff moves the static vars last_x and last_y into
SDL_Mouse. These, as far as I understand it, should be tied to the
individual mouse.
The patch also makes the code check for out of window conditions of
mouse->x,y when relative movements are passed to MouseSendMotion.
Also attached is the latest DirectFB code (dfb20081208) supporting
multiple mice and keyboards. This works quite well with sdlmame now. It
however needs more testing with different directfb configurations.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 08 Dec 2008 00:52:12 +0000 |
parents | 53689036f265 |
children |
rev | line source |
---|---|
2782
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
1 # Microsoft Developer Studio Project File - Name="testsprite" - Package Owner=<4> |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
2 # Microsoft Developer Studio Generated Build File, Format Version 5.00 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
3 # ** DO NOT EDIT ** |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
4 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
5 # TARGTYPE "Win32 (x86) Application" 0x0101 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
6 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
7 CFG=testsprite - Win32 Debug |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
8 !MESSAGE This is not a valid makefile. To build this project using NMAKE, |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
9 !MESSAGE use the Export Makefile command and run |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
10 !MESSAGE |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
11 !MESSAGE NMAKE /f "testsprite.mak". |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
12 !MESSAGE |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
13 !MESSAGE You can specify a configuration when running NMAKE |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
14 !MESSAGE by defining the macro CFG on the command line. For example: |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
15 !MESSAGE |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
16 !MESSAGE NMAKE /f "testsprite.mak" CFG="testsprite - Win32 Debug" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
17 !MESSAGE |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
18 !MESSAGE Possible choices for configuration are: |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
19 !MESSAGE |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
20 !MESSAGE "testsprite - Win32 Release" (based on "Win32 (x86) Application") |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
21 !MESSAGE "testsprite - Win32 Debug" (based on "Win32 (x86) Application") |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
22 !MESSAGE |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
23 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
24 # Begin Project |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
25 # PROP Scc_ProjName "" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
26 # PROP Scc_LocalPath "" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
27 CPP=cl.exe |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
28 MTL=midl.exe |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
29 RSC=rc.exe |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
30 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
31 !IF "$(CFG)" == "testsprite - Win32 Release" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
32 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
33 # PROP BASE Use_MFC 0 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
34 # PROP BASE Use_Debug_Libraries 0 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
35 # PROP BASE Output_Dir "Release" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
36 # PROP BASE Intermediate_Dir "Release" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
37 # PROP BASE Target_Dir "" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
38 # PROP Use_MFC 0 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
39 # PROP Use_Debug_Libraries 0 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
40 # PROP Output_Dir "Release" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
41 # PROP Intermediate_Dir "Release" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
42 # PROP Ignore_Export_Lib 0 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
43 # PROP Target_Dir "" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
44 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
45 # ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
46 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
47 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
48 # ADD BASE RSC /l 0x409 /d "NDEBUG" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
49 # ADD RSC /l 0x409 /d "NDEBUG" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
50 BSC32=bscmake.exe |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
51 # ADD BASE BSC32 /nologo |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
52 # ADD BSC32 /nologo |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
53 LINK32=link.exe |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
54 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /machine:I386 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
55 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /machine:I386 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
56 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
57 !ELSEIF "$(CFG)" == "testsprite - Win32 Debug" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
58 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
59 # PROP BASE Use_MFC 0 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
60 # PROP BASE Use_Debug_Libraries 1 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
61 # PROP BASE Output_Dir "Debug" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
62 # PROP BASE Intermediate_Dir "Debug" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
63 # PROP BASE Target_Dir "" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
64 # PROP Use_MFC 0 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
65 # PROP Use_Debug_Libraries 1 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
66 # PROP Output_Dir "Debug" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
67 # PROP Intermediate_Dir "Debug" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
68 # PROP Ignore_Export_Lib 0 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
69 # PROP Target_Dir "" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
70 # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
71 # ADD CPP /nologo /MD /W3 /Gm /GX /Zi /Od /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
72 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
73 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
74 # ADD BASE RSC /l 0x409 /d "_DEBUG" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
75 # ADD RSC /l 0x409 /d "_DEBUG" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
76 BSC32=bscmake.exe |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
77 # ADD BASE BSC32 /nologo |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
78 # ADD BSC32 /nologo |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
79 LINK32=link.exe |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
80 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
81 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
82 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
83 !ENDIF |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
84 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
85 # Begin Target |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
86 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
87 # Name "testsprite - Win32 Release" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
88 # Name "testsprite - Win32 Debug" |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
89 # Begin Source File |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
90 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
91 SOURCE=..\..\Sdl\Debug\SDL.lib |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
92 # End Source File |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
93 # Begin Source File |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
94 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
95 SOURCE=..\..\SDLmain\Debug\SDLmain.lib |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
96 # End Source File |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
97 # Begin Source File |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
98 |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
99 SOURCE=..\..\..\test\testsprite.c |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
100 # End Source File |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
101 # End Target |
53689036f265
Added testsprite test projects for Visual Studio
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
102 # End Project |