mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-03-29 17:04:39 +02:00
Fix crash on resume when X360 Controller is in use
This commit is contained in:
parent
76408ce20b
commit
f261424932
|
|
@ -33,3 +33,4 @@ It does help this project on being supported.
|
|||
- Properly apply X360 mappings for Back Panel keys
|
||||
- Setting `Keyboard[KEY] = false` and `Mouse[KEY] = false` does not cancel the press
|
||||
- Fix crash on startup when Steam is missing
|
||||
- Fix crash on resume when X360 Controller is in use
|
||||
|
|
|
|||
|
|
@ -114,7 +114,15 @@ namespace SteamController.Devices
|
|||
|
||||
if (isConnected && submitReport)
|
||||
{
|
||||
device?.SubmitReport();
|
||||
try
|
||||
{
|
||||
device?.SubmitReport();
|
||||
}
|
||||
catch (VigemInvalidTargetException)
|
||||
{
|
||||
device?.Disconnect();
|
||||
isConnected = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (FeedbackReceived is not null && FeedbackReceived.Value.Add(FeedbackTimeout) < DateTime.Now)
|
||||
|
|
|
|||
Loading…
Reference in a new issue