swallow exception when joystick cant be acquired, instead of crashing

This commit is contained in:
zeromus 2012-10-20 22:44:15 +00:00
parent 930f680fc6
commit ab46a076f2
1 changed files with 8 additions and 1 deletions

View File

@ -62,8 +62,15 @@ namespace BizHawk.MultiClient
public void Update()
{
if (joystick.Acquire().IsFailure)
try
{
if (joystick.Acquire().IsFailure)
return;
}
catch
{
return;
}
if (joystick.Poll().IsFailure)
return;