Fixes Issue 2164

Conflicts are due to same file name when omitting full path

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4982 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
ayuanx 2010-01-29 04:42:19 +00:00
parent f9dd509459
commit fdaa0e8d4c
15 changed files with 499 additions and 530 deletions

View File

@ -441,23 +441,19 @@
> >
</File> </File>
<File <File
RelativePath=".\Src\SConscript" RelativePath=".\Src\SDL_Util.cpp"
> >
</File> </File>
<File <File
RelativePath=".\Src\SDL.cpp" RelativePath=".\Src\SDL_Util.h"
> >
</File> </File>
<File <File
RelativePath=".\Src\SDL.h" RelativePath=".\Src\XInput_Util.cpp"
> >
</File> </File>
<File <File
RelativePath=".\Src\XInput.cpp" RelativePath=".\Src\XInput_Util.h"
>
</File>
<File
RelativePath=".\Src\XInput.h"
> >
</File> </File>
</Files> </Files>

View File

@ -4,6 +4,26 @@
namespace InputCommon namespace InputCommon
{ {
enum EButtonType
{
CTL_AXIS = 0,
CTL_HAT,
CTL_BUTTON,
CTL_KEY,
};
enum ETriggerType
{
CTL_TRIGGER_SDL = 0,
CTL_TRIGGER_XINPUT,
};
enum EXInputTrigger
{
XI_TRIGGER_L = 0,
XI_TRIGGER_R,
};
void Init(); void Init();
void Shutdown(); void Shutdown();
} }

View File

@ -6,7 +6,7 @@ files = [
'Configuration.cpp', 'Configuration.cpp',
'EventHandler.cpp', 'EventHandler.cpp',
'InputCommon.cpp', 'InputCommon.cpp',
'SDL.cpp', 'SDL_Util.cpp',
] ]
if env['HAVE_X11']: if env['HAVE_X11']:

View File

@ -29,8 +29,11 @@
#define _SDL_MAIN_ // Avoid certain declarations in SDL.h #define _SDL_MAIN_ // Avoid certain declarations in SDL.h
#include "SDL.h" // Local #include "InputCommon.h"
#include "XInput.h" #include "SDL_Util.h" // Local
#ifdef _WIN32
#include "XInput_Util.h"
#endif
namespace InputCommon namespace InputCommon
{ {

View File

@ -43,26 +43,6 @@
namespace InputCommon namespace InputCommon
{ {
enum EButtonType
{
CTL_AXIS = 0,
CTL_HAT,
CTL_BUTTON,
CTL_KEY,
};
enum ETriggerType
{
CTL_TRIGGER_SDL = 0,
CTL_TRIGGER_XINPUT,
};
enum EXInputTrigger
{
XI_TRIGGER_L = 0,
XI_TRIGGER_R,
};
struct CONTROLLER_INFO // CONNECTED WINDOWS DEVICES INFO struct CONTROLLER_INFO // CONNECTED WINDOWS DEVICES INFO
{ {
int NumAxes; // Amount of Axes int NumAxes; // Amount of Axes

View File

@ -36,16 +36,11 @@
// ------------------- // -------------------
#include <windows.h> #include <windows.h>
#include <XInput.h> // XInput API #include <XInput.h> // XInput API
#include "InputCommon.h"
#include "SDL.h" // Local
namespace XInput namespace XInput
{ {
// Declarations // Declarations
// ------------------- // -------------------
@ -59,8 +54,6 @@ struct CONTROLER_STATE
CONTROLER_STATE g_Controllers[MAX_CONTROLLERS]; CONTROLER_STATE g_Controllers[MAX_CONTROLLERS];
// Init // Init
// ------------------- // -------------------
/* Function: Calculate the number of connected XInput devices /* Function: Calculate the number of connected XInput devices
@ -89,8 +82,6 @@ void Init()
} }
// Get the trigger status // Get the trigger status
// ------------------- // -------------------
int GetXI(int Controller, int Button) int GetXI(int Controller, int Button)
@ -115,8 +106,6 @@ int GetXI(int Controller, int Button)
} }
// Check if a certain controller is connected // Check if a certain controller is connected
// ------------------- // -------------------
bool IsConnected(int Controller) bool IsConnected(int Controller)
@ -130,7 +119,6 @@ bool IsConnected(int Controller)
return false; return false;
} }
} // XInput } // XInput
#endif #endif

View File

@ -27,12 +27,9 @@
#include <iostream> #include <iostream>
namespace XInput namespace XInput
{ {
// Declarations // Declarations
// ---------- // ----------
void Init(); void Init();

View File

@ -22,9 +22,10 @@
#include <vector> // System #include <vector> // System
#include <cstdio> #include <cstdio>
#include "../../../Core/InputCommon/Src/SDL.h" // Core #include "../../../Core/InputCommon/Src/InputCommon.h" // Core
#include "../../../Core/InputCommon/Src/SDL_Util.h"
#ifdef _WIN32 #ifdef _WIN32
#include "../../../Core/InputCommon/Src/XInput.h" #include "../../../Core/InputCommon/Src/XInput_Util.h"
#elif defined(HAVE_X11) && HAVE_X11 #elif defined(HAVE_X11) && HAVE_X11
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xutil.h> #include <X11/Xutil.h>

View File

@ -23,12 +23,6 @@
#include "Config.h" #include "Config.h"
#include "EmuDefinitions.h" // for joyinfo #include "EmuDefinitions.h" // for joyinfo
enum TriggerType
{
CTL_TRIGGER_SDL = 0,
CTL_TRIGGER_XINPUT
};
BEGIN_EVENT_TABLE(WiimotePadConfigDialog,wxDialog) BEGIN_EVENT_TABLE(WiimotePadConfigDialog,wxDialog)
EVT_CLOSE(WiimotePadConfigDialog::OnClose) EVT_CLOSE(WiimotePadConfigDialog::OnClose)

View File

@ -21,8 +21,11 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include "../../../Core/InputCommon/Src/SDL.h" // Core #include "../../../Core/InputCommon/Src/InputCommon.h" // Core
#include "../../../Core/InputCommon/Src/XInput.h" #include "../../../Core/InputCommon/Src/SDL_Util.h"
#ifdef _WIN32
#include "../../../Core/InputCommon/Src/XInput_Util.h"
#endif
#include "Common.h" #include "Common.h"
#include "pluginspecs_wiimote.h" #include "pluginspecs_wiimote.h"

View File

@ -18,8 +18,6 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include "../../../Core/InputCommon/Src/SDL.h" // Core
#include "../../../Core/InputCommon/Src/XInput.h"
#include "Common.h" // Common #include "Common.h" // Common
#include "MathUtil.h" #include "MathUtil.h"

View File

@ -18,9 +18,6 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include "../../../Core/InputCommon/Src/SDL.h" // Core
#include "../../../Core/InputCommon/Src/XInput.h"
#include "Common.h" // Common #include "Common.h" // Common
#include "StringUtil.h" // for ArrayToString() #include "StringUtil.h" // for ArrayToString()
#include "IniFile.h" #include "IniFile.h"

View File

@ -21,8 +21,6 @@
#include <string> #include <string>
#include "../../../Core/InputCommon/Src/SDL.h" // Core
#include "wiimote_hid.h" #include "wiimote_hid.h"
#include "EmuDefinitions.h" #include "EmuDefinitions.h"
#include "ChunkFile.h" #include "ChunkFile.h"

View File

@ -19,9 +19,6 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include "../../../Core/InputCommon/Src/SDL.h" // Core
#include "../../../Core/InputCommon/Src/XInput.h"
#include "Common.h" // Common #include "Common.h" // Common
#include "StringUtil.h" // for ArrayToString() #include "StringUtil.h" // for ArrayToString()
#include "IniFile.h" #include "IniFile.h"

View File

@ -16,10 +16,7 @@
// http://code.google.com/p/dolphin-emu/ // http://code.google.com/p/dolphin-emu/
// //
#include "../../../Core/InputCommon/Src/SDL.h" // Core
#include "EmuDefinitions.h" #include "EmuDefinitions.h"
#ifdef _WIN32 #ifdef _WIN32
#include "XInput.h" #include "XInput.h"
#endif #endif