only create handle for port 0
This commit is contained in:
parent
9a9ee37092
commit
8053bbee28
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue