diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-02-21 11:49:14 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-02-21 11:49:14 +0000 |
| commit | 76a78dd60d4eefdb8f1fada8e63bac7b0c4f5a94 (patch) | |
| tree | 28bb34af351fa91d62d7f8a4fb0ba7419cf4fc88 /Source/Core/InputCommon | |
| parent | 5a66927610879fc18ef4c45ecd40b452ab6f14c0 (diff) | |
Make InputCommon build in debug mode. Seriously, WTF? Debugging code relying on functions that simply aren't there. Nakee?????
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2331 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon')
| -rw-r--r-- | Source/Core/InputCommon/Src/SDL.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/Core/InputCommon/Src/SDL.cpp b/Source/Core/InputCommon/Src/SDL.cpp index b3f81fa2f7..4dd49598db 100644 --- a/Source/Core/InputCommon/Src/SDL.cpp +++ b/Source/Core/InputCommon/Src/SDL.cpp @@ -60,11 +60,6 @@ namespace InputCommon // ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
bool SearchDevices(std::vector<CONTROLLER_INFO> &_joyinfo, int &_NumPads, int &_NumGoodPads)
{
- // Load config
- #ifdef _DEBUG
- DEBUG_INIT();
- #endif
-
/* SDL 1.3 use DirectInput instead of the old Microsoft Multimedia API, and with this we need
the SDL_INIT_VIDEO flag to */
if (!SDL_WasInit(0))
@@ -74,11 +69,6 @@ bool SearchDevices(std::vector<CONTROLLER_INFO> &_joyinfo, int &_NumPads, int &_ return false;
}
- #ifdef _DEBUG
- fprintf(pFile, "Scanning for devices\n");
- fprintf(pFile, "ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\n");
- #endif
-
// Get device status
int numjoy = SDL_NumJoysticks();
for (int i = 0; i < numjoy; i++ )
@@ -110,15 +100,6 @@ bool SearchDevices(std::vector<CONTROLLER_INFO> &_joyinfo, int &_NumPads, int &_ _joyinfo.push_back(Tmp);
- #ifdef _DEBUG
- fprintf(pFile, "ID: %d\n", i);
- fprintf(pFile, "Name: %s\n", joyinfo[i].Name);
- fprintf(pFile, "Buttons: %d\n", joyinfo[i].NumButtons);
- fprintf(pFile, "Axes: %d\n", joyinfo[i].NumAxes);
- fprintf(pFile, "Hats: %d\n", joyinfo[i].NumHats);
- fprintf(pFile, "Balls: %d\n\n", joyinfo[i].NumBalls);
- #endif
-
// We have now read the values we need so we close the device
if (SDL_JoystickOpened(i)) SDL_JoystickClose(_joyinfo[i].joy);
}
|
