mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-02-25 07:33:37 +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
|
* 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--)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user