You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Linux now dispatches OnControllerConnectionChange when gamepad is connected/disconnected.
#jira UE-25696 #rb Brandon.Schaefer [CL 16831480 by robert seiver in ue5-main branch]
This commit is contained in:
@@ -2078,6 +2078,8 @@ void FLinuxApplication::AddGameController(int Index)
|
||||
ControllerState.Haptic = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
FCoreDelegates::OnControllerConnectionChange.Broadcast(true, -1, Id);
|
||||
}
|
||||
|
||||
void FLinuxApplication::RemoveGameController(SDL_JoystickID Id)
|
||||
@@ -2097,4 +2099,6 @@ void FLinuxApplication::RemoveGameController(SDL_JoystickID Id)
|
||||
|
||||
SDL_GameControllerClose(ControllerState.Controller);
|
||||
ControllerStates.Remove(Id);
|
||||
|
||||
FCoreDelegates::OnControllerConnectionChange.Broadcast(false, -1, Id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user