mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 00:40:16 +00:00
Rename pluginspecs_pad.h to GCPadStatus.h, and move it into InputCommon.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5671 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8cae2fee56
commit
7c47cd2ae5
@ -506,10 +506,6 @@
|
|||||||
RelativePath="..\..\PluginSpecs\pluginspecs_dsp.h"
|
RelativePath="..\..\PluginSpecs\pluginspecs_dsp.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\..\PluginSpecs\pluginspecs_pad.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\PluginSpecs\pluginspecs_video.h"
|
RelativePath="..\..\PluginSpecs\pluginspecs_video.h"
|
||||||
>
|
>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "pluginspecs_pad.h"
|
#include "GCPadStatus.h"
|
||||||
|
|
||||||
#include "ControllerInterface/ControllerInterface.h"
|
#include "ControllerInterface/ControllerInterface.h"
|
||||||
#include "GCPadEmu.h"
|
#include "GCPadEmu.h"
|
||||||
@ -31,7 +31,6 @@ InputPlugin *PAD_GetPlugin() {
|
|||||||
|
|
||||||
void GCPad_Deinit()
|
void GCPad_Deinit()
|
||||||
{
|
{
|
||||||
// i realize i am checking IsInit() twice, just too lazy to change it
|
|
||||||
if ( g_plugin.controller_interface.IsInit() )
|
if ( g_plugin.controller_interface.IsInit() )
|
||||||
{
|
{
|
||||||
std::vector<ControllerEmu*>::const_iterator
|
std::vector<ControllerEmu*>::const_iterator
|
||||||
@ -84,14 +83,6 @@ void GCPad_Init( void* const hwnd )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// I N T E R F A C E
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function:
|
|
||||||
// Purpose:
|
|
||||||
// input:
|
|
||||||
// output:
|
|
||||||
//
|
|
||||||
void PAD_GetStatus(u8 _numPAD, SPADStatus* _pPADStatus)
|
void PAD_GetStatus(u8 _numPAD, SPADStatus* _pPADStatus)
|
||||||
{
|
{
|
||||||
memset( _pPADStatus, 0, sizeof(*_pPADStatus) );
|
memset( _pPADStatus, 0, sizeof(*_pPADStatus) );
|
||||||
@ -127,17 +118,6 @@ void PAD_GetStatus(u8 _numPAD, SPADStatus* _pPADStatus)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
|
||||||
// Function: Send keyboard input to the plugin
|
|
||||||
// Purpose:
|
|
||||||
// input: The key and if it's pressed or released
|
|
||||||
// output: None
|
|
||||||
//
|
|
||||||
void PAD_Input(u16 _Key, u8 _UpDown)
|
|
||||||
{
|
|
||||||
// nofin
|
|
||||||
}
|
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
// __________________________________________________________________________________________________
|
||||||
// Function: PAD_Rumble
|
// Function: PAD_Rumble
|
||||||
// Purpose: Pad rumble!
|
// Purpose: Pad rumble!
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
// Official SVN repository and contact information can be found at
|
// Official SVN repository and contact information can be found at
|
||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
#include "pluginspecs_pad.h"
|
|
||||||
|
|
||||||
#include "SI.h"
|
#include "SI.h"
|
||||||
#include "SI_Device.h"
|
#include "SI_Device.h"
|
||||||
#include "SI_DeviceAMBaseboard.h"
|
#include "SI_DeviceAMBaseboard.h"
|
||||||
|
|
||||||
|
#include "GCPadStatus.h"
|
||||||
#include "GCPad.h"
|
#include "GCPad.h"
|
||||||
|
|
||||||
#include "../PluginManager.h" // for pad state
|
#include "../PluginManager.h" // for pad state
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include "../PluginManager.h"
|
#include "../PluginManager.h"
|
||||||
#include "SI_Device.h"
|
#include "SI_Device.h"
|
||||||
#include "pluginspecs_pad.h"
|
#include "GCPadStatus.h"
|
||||||
|
|
||||||
|
|
||||||
// standard gamecube controller
|
// standard gamecube controller
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#define __FRAME_H
|
#define __FRAME_H
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "pluginspecs_pad.h"
|
#include "GCPadStatus.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -848,12 +848,14 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
|
|||||||
State_UndoSaveState();
|
State_UndoSaveState();
|
||||||
else if (event.GetModifiers() == wxMOD_SHIFT)
|
else if (event.GetModifiers() == wxMOD_SHIFT)
|
||||||
State_UndoLoadState();
|
State_UndoLoadState();
|
||||||
else event.Skip();
|
else
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
// screenshot hotkeys
|
// screenshot hotkeys
|
||||||
else if (event.GetKeyCode() == WXK_F9 && event.GetModifiers() == wxMOD_NONE)
|
else if (event.GetKeyCode() == WXK_F9 && event.GetModifiers() == wxMOD_NONE)
|
||||||
Core::ScreenShot();
|
Core::ScreenShot();
|
||||||
else event.Skip();
|
else
|
||||||
|
event.Skip();
|
||||||
|
|
||||||
// Actually perform the wiimote connection or disconnection
|
// Actually perform the wiimote connection or disconnection
|
||||||
if (WiimoteId >= 0)
|
if (WiimoteId >= 0)
|
||||||
@ -883,7 +885,6 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Send the keyboard status to the Input plugins
|
// Send the keyboard status to the Input plugins
|
||||||
PAD_Input(event.GetKeyCode(), 1); // 1 = Down
|
|
||||||
CPluginManager::GetInstance().GetWiimote()->Wiimote_Input(event.GetKeyCode(), 1); // 1 = Down
|
CPluginManager::GetInstance().GetWiimote()->Wiimote_Input(event.GetKeyCode(), 1); // 1 = Down
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -895,7 +896,6 @@ void CFrame::OnKeyUp(wxKeyEvent& event)
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
if(Core::GetState() != Core::CORE_UNINITIALIZED) {
|
if(Core::GetState() != Core::CORE_UNINITIALIZED) {
|
||||||
PAD_Input(event.GetKeyCode(), 0); // 0 = Up
|
|
||||||
CPluginManager::GetInstance().GetWiimote()->Wiimote_Input(event.GetKeyCode(), 0); // 0 = Up
|
CPluginManager::GetInstance().GetWiimote()->Wiimote_Input(event.GetKeyCode(), 0); // 0 = Up
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#define _WINSOCK2API_
|
#define _WINSOCK2API_
|
||||||
#include <SFML/Network.hpp>
|
#include <SFML/Network.hpp>
|
||||||
|
|
||||||
#include "pluginspecs_pad.h"
|
#include "GCPadStatus.h"
|
||||||
#include "svnrev.h"
|
#include "svnrev.h"
|
||||||
|
|
||||||
//#include <wx/wx.h>
|
//#include <wx/wx.h>
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
//#include "Common.h"
|
//#include "Common.h"
|
||||||
//#include "NetStructs.h"
|
//#include "NetStructs.h"
|
||||||
//#include "Core.h"
|
//#include "Core.h"
|
||||||
//#include "pluginspecs_pad.h"
|
|
||||||
//#include "HW/SI.h"
|
//#include "HW/SI.h"
|
||||||
//#include "HW/SI_Device.h"
|
//#include "HW/SI_Device.h"
|
||||||
//#include "HW/SI_DeviceGCController.h"
|
//#include "HW/SI_DeviceGCController.h"
|
||||||
|
@ -496,6 +496,10 @@
|
|||||||
RelativePath=".\Src\DirectInputBase.h"
|
RelativePath=".\Src\DirectInputBase.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\Src\GCPadStatus.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Src\InputCommon.h"
|
RelativePath=".\Src\InputCommon.h"
|
||||||
>
|
>
|
||||||
|
@ -21,17 +21,17 @@
|
|||||||
// windows crap
|
// windows crap
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
|
|
||||||
#include "pluginspecs_pad.h"
|
#include <cmath>
|
||||||
#include "pluginspecs_wiimote.h"
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#include "ControllerInterface/ControllerInterface.h"
|
|
||||||
#include "IniFile.h"
|
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include "GCPadStatus.h"
|
||||||
|
#include "pluginspecs_wiimote.h"
|
||||||
|
|
||||||
|
#include "ControllerInterface/ControllerInterface.h"
|
||||||
|
#include "IniFile.h"
|
||||||
|
|
||||||
#define sign(x) ((x)?(x)<0?-1:1:0)
|
#define sign(x) ((x)?(x)<0?-1:1:0)
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
// TODO: Move these defines somewhere else and delete this file.
|
#ifndef _GCPAD_H_INCLUDED__
|
||||||
|
#define _GCPAD_H_INCLUDED__
|
||||||
#ifndef _PAD_H_INCLUDED__
|
|
||||||
#define _PAD_H_INCLUDED__
|
|
||||||
|
|
||||||
#define PAD_ERR_NONE 0
|
#define PAD_ERR_NONE 0
|
||||||
#define PAD_ERR_NO_CONTROLLER -1
|
#define PAD_ERR_NO_CONTROLLER -1
|
||||||
@ -38,5 +36,4 @@ typedef struct
|
|||||||
signed char err; // one of PAD_ERR_* number
|
signed char err; // one of PAD_ERR_* number
|
||||||
} SPADStatus;
|
} SPADStatus;
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
x
Reference in New Issue
Block a user