Hot swapping/plugging controllers now working. Refresh action sets of all active controllers. Release Build 8298.

This commit is contained in:
2024-03-24 17:11:38 -05:00
parent 8f17c3b0fc
commit 3d621fa95b
6 changed files with 14 additions and 4 deletions
+1
View File
@@ -197,6 +197,7 @@ void Input::UpdateSteamInput(){
InputDigitalActionHandle_t inputHnd=SteamInput()->GetDigitalActionHandle(data.first.c_str());
InputDigitalActionData_t buttonData=SteamInput()->GetDigitalActionData(steamControllers[i],inputHnd);
if(!buttonData.bActive)continue; //Ignore inputs that are not active.
if(buttonData.bActive){std::cout<<input<<" is active"<<std::endl;}
data.second.bPressed=data.second.bReleased=false;
if(!data.second.bHeld&&buttonData.bState){