mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
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:
@ -32,47 +32,50 @@ namespace WiiMoteEmu
|
||||
|
||||
u32 convert24bit(const u8* src);
|
||||
u16 convert16bit(const u8* src);
|
||||
void GetMousePos(float& x, float& y);
|
||||
|
||||
// General functions
|
||||
void ResetVariables();
|
||||
void Initialize();
|
||||
void DoState(PointerWrap &p);
|
||||
void Shutdown();
|
||||
void InitCalibration();
|
||||
void UpdateExtRegisterBlocks(int Slot);
|
||||
|
||||
void InterruptChannel(int _number, u16 _channelID, const void* _pData, u32 _Size);
|
||||
void ControlChannel(int _number, u16 _channelID, const void* _pData, u32 _Size) ;
|
||||
void Update(int _number);
|
||||
void DoState(PointerWrap &p);
|
||||
void ReadLinuxKeyboard();
|
||||
bool IsKey(int Key);
|
||||
|
||||
// Recordings
|
||||
void LoadRecordedMovements();
|
||||
|
||||
// Registers and calibration values
|
||||
void ResetVariables();
|
||||
void UpdateEeprom();
|
||||
void UpdateExtRegisterBlocks();
|
||||
void GetMousePos(float& x, float& y);
|
||||
|
||||
// Gamepad
|
||||
void Close_Devices();
|
||||
bool Search_Devices(std::vector<InputCommon::CONTROLLER_INFO> &_joyinfo, int &_NumPads, int &_NumGoodPads);
|
||||
void GetJoyState(InputCommon::CONTROLLER_STATE_NEW &_PadState, InputCommon::CONTROLLER_MAPPING_NEW _PadMapping, int controller, int NumButtons);
|
||||
void PadStateAdjustments(int &Lx, int &Ly, int &Rx, int &Ry, int &Tl, int &Tr);
|
||||
void GetAxisState(CONTROLLER_MAPPING_WII &_WiiMapping);
|
||||
void UpdatePadState(CONTROLLER_MAPPING_WII &_WiiMapping);
|
||||
|
||||
// Accelerometer
|
||||
void PitchAccelerometerToDegree(u8 _x, u8 _y, u8 _z, int &_Roll, int &_Pitch, int&, int&);
|
||||
float AccelerometerToG(float Current, float Neutral, float G);
|
||||
void TiltWiimote(int &_x, int &_y, int &_z);
|
||||
void TiltNunchuck(int &_x, int &_y, int &_z);
|
||||
void ShakeToAccelerometer(int &_x, int &_y, int &_z, STiltData &_TiltData);
|
||||
void TiltToAccelerometer(int &_x, int &_y, int &_z, STiltData &_TiltData);
|
||||
void AdjustAngles(int &Roll, int &Pitch);
|
||||
void RotateIRDot(int &_x, int &_y, STiltData &_TiltData);
|
||||
|
||||
// Accelerometer
|
||||
//void PitchAccelerometerToDegree(u8 _x, u8 _y, u8 _z, int &_Roll, int &_Pitch, int&, int&);
|
||||
//float AccelerometerToG(float Current, float Neutral, float G);
|
||||
|
||||
// IR data
|
||||
void RotateIRDots(int &_x, int &_y, STiltData &_TiltData);
|
||||
void IRData2Dots(u8 *Data);
|
||||
void IRData2DotsBasic(u8 *Data);
|
||||
//void IRData2Dots(u8 *Data);
|
||||
//void IRData2DotsBasic(u8 *Data);
|
||||
//void ReorderIRDots();
|
||||
//void IRData2Distance();
|
||||
|
||||
// Classic Controller data
|
||||
std::string CCData2Values(u8 *Data);
|
||||
//std::string CCData2Values(u8 *Data);
|
||||
|
||||
}; // WiiMoteEmu
|
||||
|
||||
|
Reference in New Issue
Block a user