Prevent trying to use DirectInput on Linux (resolves #2607)

This commit is contained in:
YoshiRulz 2021-02-05 07:05:06 +10:00
parent 2b72eabdf9
commit 9d1eaa6475
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 0 deletions

View File

@ -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()
};