mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Merge the pad plugin into Dolphin. Since there's only one plugin left under active development, and it's awesome, we no longer have a need for a pad plugin mechanism.
In the future if we merge wiimote too, this will bring the advantage that the two will be able to cooperate, to no longer fight over control of input devices which can sometimes cause problems. Thanks shuffle2 for the patience. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5670 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -63,7 +63,7 @@ enum PLUGIN_COMM
|
||||
enum PLUGIN_TYPE {
|
||||
PLUGIN_TYPE_VIDEO = 1,
|
||||
PLUGIN_TYPE_DVD,
|
||||
PLUGIN_TYPE_PAD,
|
||||
PLUGIN_TYPE_PAD_REMOVED,
|
||||
PLUGIN_TYPE_AUDIO,
|
||||
PLUGIN_TYPE_COMPILER,
|
||||
PLUGIN_TYPE_DSP,
|
||||
|
@ -1,14 +1,8 @@
|
||||
//__________________________________________________________________________________________________
|
||||
// Common pad plugin spec, version #1.0 maintained by F|RES
|
||||
//
|
||||
// TODO: Move these defines somewhere else and delete this file.
|
||||
|
||||
#ifndef _PAD_H_INCLUDED__
|
||||
#define _PAD_H_INCLUDED__
|
||||
|
||||
#include "PluginSpecs.h"
|
||||
|
||||
#include "ExportProlog.h"
|
||||
|
||||
#define PAD_ERR_NONE 0
|
||||
#define PAD_ERR_NO_CONTROLLER -1
|
||||
#define PAD_ERR_NOT_READY -2
|
||||
@ -29,19 +23,6 @@
|
||||
#define PAD_BUTTON_Y 0x0800
|
||||
#define PAD_BUTTON_START 0x1000
|
||||
|
||||
typedef void (*TLog)(const char* _pMessage);
|
||||
typedef bool (*TRendererHasFocus)(void);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
HWND hWnd;
|
||||
#if defined HAVE_X11 && HAVE_X11
|
||||
void *pXWindow;
|
||||
#endif
|
||||
TLog pLog;
|
||||
TRendererHasFocus pRendererHasFocus;
|
||||
} SPADInitialize;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned short button; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits
|
||||
@ -58,31 +39,4 @@ typedef struct
|
||||
} SPADStatus;
|
||||
|
||||
|
||||
// I N T E R F A C E
|
||||
|
||||
// __________________________________________________________________________________________________
|
||||
// Function:
|
||||
// Purpose:
|
||||
// input:
|
||||
// output:
|
||||
//
|
||||
EXPORT void CALL 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
|
||||
//
|
||||
EXPORT void CALL PAD_Input(u16 _Key, u8 _UpDown);
|
||||
|
||||
// __________________________________________________________________________________________________
|
||||
// Function: PAD_Rumble
|
||||
// Purpose: Pad rumble!
|
||||
// input: PAD number, Command type (Stop=0, Rumble=1, Stop Hard=2) and strength of Rumble
|
||||
// output: none
|
||||
//
|
||||
EXPORT void CALL PAD_Rumble(u8 _numPAD, unsigned int _uType, unsigned int _uStrength);
|
||||
|
||||
#include "ExportEpilog.h"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user