diff --git a/VisualC-GDK/SDL.sln b/VisualC-GDK/SDL.sln index 5eef5d91b..2cdfa0bd8 100644 --- a/VisualC-GDK/SDL.sln +++ b/VisualC-GDK/SDL.sln @@ -10,7 +10,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsprite", "tests\testspr EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL3_test", "SDL_test\SDL_test.vcxproj", "{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgamepad", "tests\testgamepad\testgamepad.vcxproj", "{55812185-D13C-4022-9C81-32E0F4A08305}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testcontroller", "tests\testcontroller\testcontroller.vcxproj", "{55812185-D13C-4022-9C81-32E0F4A08305}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgdk", "tests\testgdk\testgdk.vcxproj", "{1C9A3F71-35A5-4C56-B292-F4375B3C3649}" EndProject diff --git a/VisualC-GDK/tests/testgamepad/PackageLayout.xml b/VisualC-GDK/tests/testcontroller/PackageLayout.xml similarity index 81% rename from VisualC-GDK/tests/testgamepad/PackageLayout.xml rename to VisualC-GDK/tests/testcontroller/PackageLayout.xml index 272543b06..2fc9a762a 100644 --- a/VisualC-GDK/tests/testgamepad/PackageLayout.xml +++ b/VisualC-GDK/tests/testcontroller/PackageLayout.xml @@ -1,6 +1,6 @@ - + diff --git a/VisualC-GDK/tests/testgamepad/testgamepad.vcxproj b/VisualC-GDK/tests/testcontroller/testcontroller.vcxproj similarity index 96% rename from VisualC-GDK/tests/testgamepad/testgamepad.vcxproj rename to VisualC-GDK/tests/testcontroller/testcontroller.vcxproj index bb3c52e22..3f0156166 100644 --- a/VisualC-GDK/tests/testgamepad/testgamepad.vcxproj +++ b/VisualC-GDK/tests/testcontroller/testcontroller.vcxproj @@ -28,7 +28,7 @@ {55812185-D13C-4022-9C81-32E0F4A08305} - testgamepad + testcontroller 10.0 @@ -124,7 +124,7 @@ NDEBUG;%(PreprocessorDefinitions) true true - .\Release/testgamepad.tlb + .\Release/testcontroller.tlb $(SolutionDir)/../include;%(AdditionalIncludeDirectories) @@ -147,7 +147,7 @@ NDEBUG;%(PreprocessorDefinitions) true true - .\Release/testgamepad.tlb + .\Release/testcontroller.tlb $(SolutionDir)/../include;%(AdditionalIncludeDirectories) @@ -170,7 +170,7 @@ NDEBUG;%(PreprocessorDefinitions) true true - .\Release/testgamepad.tlb + .\Release/testcontroller.tlb $(SolutionDir)/../include;%(AdditionalIncludeDirectories) @@ -193,7 +193,7 @@ _DEBUG;%(PreprocessorDefinitions) true true - .\Debug/testgamepad.tlb + .\Debug/testcontroller.tlb Disabled @@ -219,7 +219,7 @@ _DEBUG;%(PreprocessorDefinitions) true true - .\Debug/testgamepad.tlb + .\Debug/testcontroller.tlb Disabled @@ -245,7 +245,7 @@ _DEBUG;%(PreprocessorDefinitions) true true - .\Debug/testgamepad.tlb + .\Debug/testcontroller.tlb Disabled @@ -276,7 +276,7 @@ - + @@ -330,4 +330,4 @@ - \ No newline at end of file + diff --git a/VisualC-GDK/tests/testgamepad/testgamepad.vcxproj.filters b/VisualC-GDK/tests/testcontroller/testcontroller.vcxproj.filters similarity index 94% rename from VisualC-GDK/tests/testgamepad/testgamepad.vcxproj.filters rename to VisualC-GDK/tests/testcontroller/testcontroller.vcxproj.filters index a5de19eb3..e4e2413ef 100644 --- a/VisualC-GDK/tests/testgamepad/testgamepad.vcxproj.filters +++ b/VisualC-GDK/tests/testcontroller/testcontroller.vcxproj.filters @@ -1,7 +1,7 @@  - + @@ -49,4 +49,4 @@ {e704dcb9-c83c-4c94-a139-b0f3e3f428f2} - \ No newline at end of file + diff --git a/VisualC-GDK/tests/testgamepad/wingdk/MicrosoftGame.config b/VisualC-GDK/tests/testcontroller/wingdk/MicrosoftGame.config similarity index 85% rename from VisualC-GDK/tests/testgamepad/wingdk/MicrosoftGame.config rename to VisualC-GDK/tests/testcontroller/wingdk/MicrosoftGame.config index 45adb2682..162624a41 100644 --- a/VisualC-GDK/tests/testgamepad/wingdk/MicrosoftGame.config +++ b/VisualC-GDK/tests/testcontroller/wingdk/MicrosoftGame.config @@ -7,7 +7,7 @@ Publisher="CN=Publisher"/> - @@ -22,13 +22,13 @@ PleaseChangeMe FFFFFFFF - - \ No newline at end of file + diff --git a/VisualC-GDK/tests/testgamepad/xboxone/MicrosoftGame.config b/VisualC-GDK/tests/testcontroller/xboxone/MicrosoftGame.config similarity index 84% rename from VisualC-GDK/tests/testgamepad/xboxone/MicrosoftGame.config rename to VisualC-GDK/tests/testcontroller/xboxone/MicrosoftGame.config index f33e3779e..9d908c90b 100644 --- a/VisualC-GDK/tests/testgamepad/xboxone/MicrosoftGame.config +++ b/VisualC-GDK/tests/testcontroller/xboxone/MicrosoftGame.config @@ -7,7 +7,7 @@ Publisher="CN=Publisher"/> - @@ -16,14 +16,14 @@ PleaseChangeMe FFFFFFFF - - \ No newline at end of file + diff --git a/VisualC-GDK/tests/testgamepad/xboxseries/MicrosoftGame.config b/VisualC-GDK/tests/testcontroller/xboxseries/MicrosoftGame.config similarity index 84% rename from VisualC-GDK/tests/testgamepad/xboxseries/MicrosoftGame.config rename to VisualC-GDK/tests/testcontroller/xboxseries/MicrosoftGame.config index 5fa45d436..6d1829b76 100644 --- a/VisualC-GDK/tests/testgamepad/xboxseries/MicrosoftGame.config +++ b/VisualC-GDK/tests/testcontroller/xboxseries/MicrosoftGame.config @@ -7,7 +7,7 @@ Publisher="CN=Publisher"/> - @@ -16,14 +16,14 @@ PleaseChangeMe FFFFFFFF - - \ No newline at end of file + diff --git a/VisualC/SDL.sln b/VisualC/SDL.sln index 5c6580cec..66403e16f 100644 --- a/VisualC/SDL.sln +++ b/VisualC/SDL.sln @@ -36,7 +36,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsprite", "tests\testspr EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL3_test", "SDL_test\SDL_test.vcxproj", "{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgamepad", "tests\testgamepad\testgamepad.vcxproj", "{55812185-D13C-4022-9C81-32E0F4A08305}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testcontroller", "tests\testcontroller\testcontroller.vcxproj", "{55812185-D13C-4022-9C81-32E0F4A08305}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgles2", "tests\testgles2\testgles2.vcxproj", "{E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}" EndProject diff --git a/VisualC/tests/testgamepad/testgamepad.vcxproj b/VisualC/tests/testcontroller/testcontroller.vcxproj similarity index 95% rename from VisualC/tests/testgamepad/testgamepad.vcxproj rename to VisualC/tests/testcontroller/testcontroller.vcxproj index 73890d630..5bdcc3b21 100644 --- a/VisualC/tests/testgamepad/testgamepad.vcxproj +++ b/VisualC/tests/testcontroller/testcontroller.vcxproj @@ -20,7 +20,7 @@ {55812185-D13C-4022-9C81-32E0F4A08305} - testgamepad + testcontroller 10.0 @@ -89,7 +89,7 @@ true true Win32 - .\Release/testgamepad.tlb + .\Release/testcontroller.tlb $(SolutionDir)/../include;%(AdditionalIncludeDirectories) @@ -112,7 +112,7 @@ true true X64 - .\Release/testgamepad.tlb + .\Release/testcontroller.tlb $(SolutionDir)/../include;%(AdditionalIncludeDirectories) @@ -135,7 +135,7 @@ true true Win32 - .\Debug/testgamepad.tlb + .\Debug/testcontroller.tlb Disabled @@ -161,7 +161,7 @@ true true X64 - .\Debug/testgamepad.tlb + .\Debug/testcontroller.tlb Disabled @@ -197,10 +197,10 @@ - + - \ No newline at end of file + diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5d9034936..77b49f0fd 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -209,7 +209,7 @@ if(SDL3_TESTS_SUBPROJECT) endif() add_sdl_test_executable(testfile NONINTERACTIVE SOURCES testfile.c) -add_sdl_test_executable(testgamepad TESTUTILS SOURCES testgamepad.c gamepadutils.c) +add_sdl_test_executable(testcontroller TESTUTILS SOURCES testcontroller.c gamepadutils.c) add_sdl_test_executable(testgeometry TESTUTILS SOURCES testgeometry.c) add_sdl_test_executable(testgl SOURCES testgl.c) add_sdl_test_executable(testgles SOURCES testgles.c) diff --git a/test/testgamepad.c b/test/testcontroller.c similarity index 99% rename from test/testgamepad.c rename to test/testcontroller.c index 585712d81..099f06ad3 100644 --- a/test/testgamepad.c +++ b/test/testcontroller.c @@ -10,7 +10,7 @@ freely. */ -/* Simple program to test the SDL gamepad routines */ +/* Simple program to test the SDL controller routines */ #include #include @@ -46,7 +46,7 @@ static const char *power_level_strings[] = { }; SDL_COMPILE_TIME_ASSERT(power_level_strings, SDL_arraysize(power_level_strings) == SDL_JOYSTICK_POWER_MAX + 1); -typedef struct +typedef struct { SDL_JoystickID id; SDL_Joystick *joystick; @@ -931,7 +931,7 @@ int main(int argc, char *argv[]) } screen_width = (int)SDL_ceilf(SCREEN_WIDTH * content_scale); screen_height = (int)SDL_ceilf(SCREEN_HEIGHT * content_scale); - window = SDL_CreateWindow("Gamepad Test", screen_width, screen_height, 0); + window = SDL_CreateWindow("SDL Controller Test", screen_width, screen_height, 0); if (window == NULL) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create window: %s\n", SDL_GetError()); return 2;