only create handle for port 0

This commit is contained in:
jackchentwkh 2018-04-29 19:00:51 +08:00
parent 9a9ee37092
commit 8053bbee28
1 changed files with 2 additions and 2 deletions

View File

@ -339,8 +339,8 @@ HANDLE WINAPI XTL::EMUPATCH(XInputOpen)
LOG_FUNC_END; LOG_FUNC_END;
POLLING_PARAMETERS_HANDLE *pph = 0; POLLING_PARAMETERS_HANDLE *pph = 0;
//return pph handle only for port 0, this prevents some title from polling input state with port other than 0 thus fix the no input issue such as RalliSport
if(dwPort >= 0 && (dwPort <= 3)) if(dwPort >= 0 && (dwPort <= 0))
{ {
if(g_hInputHandle[dwPort] == 0) if(g_hInputHandle[dwPort] == 0)
{ {