dont allocate keystates repeatedly in input code (use `ref keystate`) instead
This commit is contained in:
parent
a742758288
commit
b7a053f7da
|
@ -26,7 +26,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
if (keyboard.Poll().IsFailure)
|
if (keyboard.Poll().IsFailure)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
state = keyboard.GetCurrentState();
|
keyboard.GetCurrentState(ref state);
|
||||||
if (Result.Last.IsFailure)
|
if (Result.Last.IsFailure)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue