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;
GSwin = (Window) * (((u32 *)pDsp) + 1);
SetAutoRepeat(false);
return 0;
}
void _PADclose()
{
SetAutoRepeat(true);
s_vgamePad.clear();
}

View File

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

View File

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

View File

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

View File

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