Now Dolphin officially supports Multi-WiiMote (up to 4)

* You can connect/disconnect one or more WiiMote from Menu->Tools any time (must pause game first)

* Up to 4 Emulated Wiimotes can work together at the same timer

(PS: "Wiimote_Real" needs to be rewritten to support Multi-WiiMote, and it could be broken already now)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4736 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
ayuanx
2009-12-27 19:31:02 +00:00
parent 4483f2c7b5
commit d62d6b0c33
36 changed files with 2046 additions and 2749 deletions

View File

@ -22,94 +22,14 @@
#include <X11/keysym.h>
#endif
#define AN_CONTROLS 6
#define WM_CONTROLS 16
#define NC_CONTROLS 11
#define CC_CONTROLS 23
#define GH3_CONTROLS 14
enum
{
EXT_NONE = 0,
EXT_NUNCHUCK,
EXT_CLASSIC_CONTROLLER,
EXT_GUITARHERO3_CONTROLLER,
};
struct Config
{
Config();
void Load(bool ChangePad = false);
void Save(int Slot = -1);
void Load();
void Save();
struct TiltRange
{
int RollDegree;
bool RollSwing;
int Roll;
int PitchDegree;
bool PitchSwing;
int Pitch;
};
struct PadTilt
{
enum ETiltType
{
OFF = 0,
KEYBOARD,
ANALOG1,
ANALOG2,
TRIGGER
};
int TypeWM;
int TypeNC;
bool RollInvert;
bool PitchInvert;
TiltRange Range;
};
struct PadNunchuck
{
enum ENunchuckStick
{
KEYBOARD,
ANALOG1,
ANALOG2
};
int Type;
};
struct PadClassicController
{
enum ECcStick
{
KEYBOARD,
ANALOG1,
ANALOG2,
TRIGGER
};
int LType;
int RType;
int TType;
};
struct PadGH3
{
enum EGH3Stick
{
// KEYBOARD,
ANALOG1,
ANALOG2
};
int AType; // Analog Stick
int TType; // Whammy bar
};
// Emulated Wiimote
bool bInputActive;
bool bSideways;
bool bUpright;
bool bWideScreen;
bool bMotionPlusConnected;
int iExtensionConnected;
// For dialog sync
int CurrentPage;
// Real Wiimote
bool bConnectRealWiimote, bUseRealWiimote, bUpdateRealWiimote;
@ -117,12 +37,6 @@ struct Config
int iAccNeutralX, iAccNeutralY, iAccNeutralZ;
int iAccNunNeutralX, iAccNunNeutralY, iAccNunNeutralZ;
// Gamepad
bool bNoTriggerFilter;
PadTilt Tilt;
PadNunchuck Nunchuck;
PadClassicController ClassicController;
PadGH3 GH3Controller;
// Screen size settings
bool bKeepAR43, bKeepAR169, bCrop;
};