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