mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-23 19:19:22 +01:00
Fix lag with GameCube controllers
This commit is contained in:
parent
8bd9b8aedc
commit
fa7eaf3fed
@ -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--)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user