onepad: remove autorepeat deadcode

a9af374 onepad: don't touch autorepeat setup
This commit is contained in:
Gregory Hainaut 2017-04-17 09:18:36 +02:00
parent e408b3ab02
commit f91faacc53
5 changed files with 0 additions and 21 deletions

View File

@ -70,14 +70,11 @@ s32 _PADopen(void *pDsp)
GSdsp = *(Display **)pDsp; GSdsp = *(Display **)pDsp;
GSwin = (Window) * (((u32 *)pDsp) + 1); GSwin = (Window) * (((u32 *)pDsp) + 1);
SetAutoRepeat(false);
return 0; return 0;
} }
void _PADclose() void _PADclose()
{ {
SetAutoRepeat(true);
s_vgamePad.clear(); s_vgamePad.clear();
} }

View File

@ -38,18 +38,6 @@ char *KeysymToChar(int keysym)
} }
#endif #endif
void SetAutoRepeat(bool autorep)
{
#if defined(__unix__)
if (toggleAutoRepeat) {
if (autorep)
XAutoRepeatOn(GSdsp);
else
XAutoRepeatOff(GSdsp);
}
#endif
}
#if defined(__unix__) #if defined(__unix__)
static bool s_grab_input = false; static bool s_grab_input = false;
static bool s_Shift = false; static bool s_Shift = false;
@ -128,11 +116,9 @@ static void AnalyzeKeyEvent(keyEvent &evt)
break; break;
case FocusIn: case FocusIn:
//XAutoRepeatOff(GSdsp);
break; break;
case FocusOut: case FocusOut:
//XAutoRepeatOn(GSdsp);
s_Shift = false; s_Shift = false;
break; break;

View File

@ -41,6 +41,4 @@ extern HWND GShwnd;
#endif #endif
extern void SetAutoRepeat(bool autorep);
#endif #endif

View File

@ -44,7 +44,6 @@ keyEvent event;
static keyEvent s_event; static keyEvent s_event;
std::string s_strIniPath("inis/"); std::string s_strIniPath("inis/");
std::string s_strLogPath("logs/"); std::string s_strLogPath("logs/");
bool toggleAutoRepeat = false;
const u32 version = PS2E_PAD_VERSION; const u32 version = PS2E_PAD_VERSION;
const u32 revision = 2; const u32 revision = 2;

View File

@ -118,7 +118,6 @@ enum gamePadValues {
extern FILE *padLog; extern FILE *padLog;
extern void initLogging(); extern void initLogging();
extern bool toggleAutoRepeat;
#define PAD_LOG __Log #define PAD_LOG __Log
//#define PAD_LOG __LogToConsole //#define PAD_LOG __LogToConsole