swallow exception when joystick cant be acquired, instead of crashing
This commit is contained in:
parent
930f680fc6
commit
ab46a076f2
|
@ -61,9 +61,16 @@ namespace BizHawk.MultiClient
|
|||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (joystick.Acquire().IsFailure)
|
||||
return;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (joystick.Poll().IsFailure)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue