Fix lag with GameCube controllers

This commit is contained in:
dborth 2012-10-04 00:33:54 +00:00
parent 8bd9b8aedc
commit fa7eaf3fed

View File

@ -197,8 +197,6 @@ void ResetControls(int consoleCtrl, int wiiCtrl)
*
* Scans pad and wpad
***************************************************************************/
static int padsConnected = 0;
static u64 prev, now;
void
UpdatePads()
@ -207,17 +205,7 @@ UpdatePads()
WPAD_ScanPads();
#endif
now = gettime();
if(!padsConnected && diff_sec(prev, now) < 2)
return;
prev = now;
padsConnected = PAD_ScanPads();
if(!padsConnected)
return;
PAD_ScanPads();
for(int i=3; i >= 0; i--)
{