Skip DirectInput initialization for device names containing "Xbox One" or "XINPUT"
This commit is contained in:
parent
2549c3fa04
commit
206314445b
|
@ -26,7 +26,7 @@ namespace BizHawk.Bizware.DirectX
|
||||||
{
|
{
|
||||||
Console.WriteLine("joy device: {0} `{1}`", device.InstanceGuid, device.ProductName);
|
Console.WriteLine("joy device: {0} `{1}`", device.InstanceGuid, device.ProductName);
|
||||||
|
|
||||||
if (device.ProductName.Contains("XBOX 360"))
|
if (device.ProductName.Contains("XBOX 360") || device.ProductName.Contains("Xbox One") || device.ProductName.Contains("XINPUT"))
|
||||||
continue; // Don't input XBOX 360 controllers into here; we'll process them via XInput (there are limitations in some trigger axes when xbox pads go over xinput)
|
continue; // Don't input XBOX 360 controllers into here; we'll process them via XInput (there are limitations in some trigger axes when xbox pads go over xinput)
|
||||||
|
|
||||||
var joystick = new Joystick(_directInput, device.InstanceGuid);
|
var joystick = new Joystick(_directInput, device.InstanceGuid);
|
||||||
|
|
Loading…
Reference in New Issue