forked from cafeberry/4JLibs
fix: pad 0 signed in when keyboard focused (KBM without gamepad)
This commit is contained in:
@@ -7,12 +7,18 @@ wchar_t fakeGamerTagW[16] = L"PlayerName";
|
||||
|
||||
bool CSys::IsSignedIn(int iQuadrant)
|
||||
{
|
||||
return InputManager.IsPadConnected(iQuadrant); //str1k3r - since we dont sign in like consoles just check if the pad is connected
|
||||
if (InputManager.IsPadConnected(iQuadrant))
|
||||
return true;
|
||||
//str1k3r - since we dont sign in like consoles just check if the pad is connected
|
||||
//kbm - pad 0 also counts as signed in when the keyboard is available
|
||||
return iQuadrant == 0 && InputManager.IsWindowFocused();
|
||||
}
|
||||
|
||||
bool CSys::IsSignedInLive(int iProf)
|
||||
{
|
||||
return InputManager.IsPadConnected(iProf);
|
||||
if (InputManager.IsPadConnected(iProf))
|
||||
return true;
|
||||
return iProf == 0 && InputManager.IsWindowFocused();
|
||||
}
|
||||
|
||||
//str1k3r - set every pad that isnt pad 0 as a guest
|
||||
|
||||
Reference in New Issue
Block a user