diff options
| author | nakeee <nakeee@gmail.com> | 2010-06-06 05:24:26 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2010-06-06 05:24:26 +0000 |
| commit | 08636392b6e33d5fb1fb5d5d2b9a56537fa2c2a9 (patch) | |
| tree | a42223bf62912531c81480840f922dd091f7f94c /Source/Core/InputCommon/Src/ControllerInterface | |
| parent | 9c3c7c544324f91b6ffbeab8daa56070e3929d10 (diff) | |
compile fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5627 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<ControllerInterface::Device*>& 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<std::string, ZeroedInt> name_counts; |
