From 08636392b6e33d5fb1fb5d5d2b9a56537fa2c2a9 Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 6 Jun 2010 05:24:26 +0000 Subject: [PATCH] compile fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5627 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp b/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp index 5bed65fd88..308518be44 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp +++ b/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp @@ -18,10 +18,11 @@ namespace ciface namespace SDL { +struct ZeroedInt{ZeroedInt():value(0){}unsigned int value;}; void Init( std::vector& devices ) { // just a struct with an int that is set to ZERO by default - struct ZeroedInt{ZeroedInt():value(0){}unsigned int value;}; + // this is used to number the joysticks // multiple joysticks with the same name shall get unique ids starting at 0 std::map name_counts;