From b7a053f7da147ba31d236becb76636277684d129 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 30 Jan 2014 04:35:35 +0000 Subject: [PATCH] dont allocate keystates repeatedly in input code (use `ref keystate`) instead --- BizHawk.Client.EmuHawk/Input/Keyboard.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/Input/Keyboard.cs b/BizHawk.Client.EmuHawk/Input/Keyboard.cs index b5f95335c7..f350c808b7 100644 --- a/BizHawk.Client.EmuHawk/Input/Keyboard.cs +++ b/BizHawk.Client.EmuHawk/Input/Keyboard.cs @@ -26,7 +26,7 @@ namespace BizHawk.Client.EmuHawk if (keyboard.Poll().IsFailure) return; - state = keyboard.GetCurrentState(); + keyboard.GetCurrentState(ref state); if (Result.Last.IsFailure) return; }