mirror of
https://github.com/dborth/fceugx.git
synced 2024-12-04 22:34:14 +01:00
Fix lag with GameCube controllers
This commit is contained in:
parent
bbd3eebfb2
commit
e95cefb95d
@ -186,8 +186,6 @@ void SetControllers()
|
||||
*
|
||||
* Scans pad and wpad
|
||||
***************************************************************************/
|
||||
static int padsConnected = 0;
|
||||
static u64 prev, now;
|
||||
|
||||
void
|
||||
UpdatePads()
|
||||
@ -195,18 +193,8 @@ UpdatePads()
|
||||
#ifdef HW_RVL
|
||||
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