[Wii] fixed WPAD timeout initialization

This commit is contained in:
EkeEke 2015-05-31 20:41:18 +02:00
parent bbdb551faf
commit 2c725ee90f
6 changed files with 6 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 3.8 MiB

View File

@ -3,7 +3,7 @@
* *
* Genesis Plus GX configuration file support * Genesis Plus GX configuration file support
* *
* Copyright Eke-Eke (2007-2014) * Copyright Eke-Eke (2007-2015)
* *
* Redistribution and use of this code or any derivative works are permitted * Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met: * provided that the following conditions are met:
@ -259,7 +259,10 @@ void config_default(void)
/* try to restore user config */ /* try to restore user config */
int loaded = config_load(); int loaded = config_load();
#ifndef HW_RVL #ifdef HW_RVL
/* initialize WPAD timeout */
WPAD_SetIdleTimeout(config.autosleep ? 300 : 1800);
#else
/* check if component cable was detected */ /* check if component cable was detected */
if (VIDEO_HaveComponentCable()) if (VIDEO_HaveComponentCable())
{ {

View File

@ -3,7 +3,7 @@
* *
* Genesis Plus GX configuration file support * Genesis Plus GX configuration file support
* *
* Copyright Eke-Eke (2007-2014) * Copyright Eke-Eke (2007-2015)
* *
* Redistribution and use of this code or any derivative works are permitted * Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met: * provided that the following conditions are met:

View File

@ -1128,7 +1128,6 @@ void gx_input_Init(void)
PAD_Init(); PAD_Init();
#ifdef HW_RVL #ifdef HW_RVL
WPAD_Init(); WPAD_Init();
WPAD_SetIdleTimeout(config.autosleep ? 300 : 1800);
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR); WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
WPAD_SetVRes(WPAD_CHAN_ALL,640,480); WPAD_SetVRes(WPAD_CHAN_ALL,640,480);
#endif #endif