Skip to content

Commit

Permalink
fix strings like JOY4 being shown in game instructor prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Nov 13, 2023
1 parent 21c18dd commit 021897b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/game/client/swarm/rd_steam_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,19 @@ const char *CRD_Steam_Input::Key_LookupBindingEx( const char *pBinding, int iUse
}
}

// extra check just in case it's not a Steam Input bind so we don't get legacy controller binds when we don't want them.
if ( !bAny )
{
FOR_EACH_VEC( m_Controllers, i )
{
if ( !m_Controllers[i]->m_bConnected || m_Controllers[i]->m_SplitScreenPlayerIndex != iRealUserId )
continue;

bAny = true;
break;
}
}

// if we have Steam Input controllers, don't show Source Engine controller binds for the same command.
if ( bAny )
{
Expand Down

0 comments on commit 021897b

Please sign in to comment.