From 9d1eaa64756b64717e7a280c1331302caae43e90 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Fri, 5 Feb 2021 07:05:06 +1000 Subject: [PATCH] Prevent trying to use DirectInput on Linux (resolves #2607) --- src/BizHawk.Client.EmuHawk/Input/Input.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BizHawk.Client.EmuHawk/Input/Input.cs b/src/BizHawk.Client.EmuHawk/Input/Input.cs index 6b0eef135c..3f86b7a59e 100644 --- a/src/BizHawk.Client.EmuHawk/Input/Input.cs +++ b/src/BizHawk.Client.EmuHawk/Input/Input.cs @@ -123,6 +123,7 @@ namespace BizHawk.Client.EmuHawk Adapter = config.HostInputMethod switch { EHostInputMethod.OpenTK => new OpenTKInputAdapter(), + _ when OSTailoredCode.IsUnixHost => new OpenTKInputAdapter(), EHostInputMethod.DirectInput => new DirectInputAdapter(), _ => throw new Exception() };