2020-06-24 00:40:43 +00:00
|
|
|
#ifndef _aosdfjk02fmasf
|
|
|
|
#define _aosdfjk02fmasf
|
|
|
|
|
2020-06-28 00:07:24 +00:00
|
|
|
#include "common/configSys.h"
|
2020-06-24 00:40:43 +00:00
|
|
|
|
|
|
|
#define MAXBUTTCONFIG 4
|
2020-06-28 01:08:02 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
BUTTC_KEYBOARD = 0,
|
|
|
|
BUTTC_JOYSTICK = 1,
|
|
|
|
BUTTC_MOUSE = 2
|
|
|
|
};
|
|
|
|
struct ButtConfig
|
|
|
|
{
|
|
|
|
int ButtType[MAXBUTTCONFIG];
|
|
|
|
int DeviceNum[MAXBUTTCONFIG];
|
2020-06-24 00:40:43 +00:00
|
|
|
int ButtonNum[MAXBUTTCONFIG];
|
|
|
|
uint32 NumC;
|
|
|
|
//uint64 DeviceID[MAXBUTTCONFIG]; /* TODO */
|
2020-06-28 01:08:02 +00:00
|
|
|
};
|
2020-06-24 00:40:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
extern int NoWaiting;
|
|
|
|
extern CFGSTRUCT InputConfig[];
|
|
|
|
extern ARGPSTRUCT InputArgs[];
|
|
|
|
extern int Hotkeys[];
|
|
|
|
void ParseGIInput(FCEUGI *GI);
|
|
|
|
void setHotKeys();
|
|
|
|
int getKeyState( int k );
|
|
|
|
int ButtonConfigBegin();
|
|
|
|
void ButtonConfigEnd();
|
|
|
|
void ConfigButton(char *text, ButtConfig *bc);
|
|
|
|
int DWaitButton(const uint8 *text, ButtConfig *bc, int wb, int *buttonConfigStatus = NULL);
|
|
|
|
|
|
|
|
|
|
|
|
#define FCFGD_GAMEPAD 1
|
|
|
|
#define FCFGD_POWERPAD 2
|
|
|
|
#define FCFGD_HYPERSHOT 3
|
|
|
|
#define FCFGD_QUIZKING 4
|
|
|
|
|
|
|
|
#define SDL_FCEU_HOTKEY_EVENT SDL_USEREVENT
|
|
|
|
|
|
|
|
void InitInputInterface(void);
|
|
|
|
void InputUserActiveFix(void);
|
|
|
|
|
|
|
|
extern bool replaceP2StartWithMicrophone;
|
|
|
|
extern ButtConfig GamePadConfig[4][10];
|
|
|
|
//extern ButtConfig powerpadsc[2][12];
|
|
|
|
//extern ButtConfig QuizKingButtons[6];
|
|
|
|
//extern ButtConfig FTrainerButtons[12];
|
|
|
|
|
|
|
|
void IncreaseEmulationSpeed(void);
|
|
|
|
void DecreaseEmulationSpeed(void);
|
|
|
|
|
|
|
|
int DTestButtonJoy(ButtConfig *bc);
|
|
|
|
|
|
|
|
void FCEUD_UpdateInput(void);
|
|
|
|
|
|
|
|
void UpdateInput(Config *config);
|
|
|
|
void InputCfg(const std::string &);
|
|
|
|
|
|
|
|
std::string GetUserText(const char* title);
|
|
|
|
const char* ButtonName(const ButtConfig* bc, int which);
|
|
|
|
#endif
|
|
|
|
|