[Win] Retrieve joystick input even on background
This commit is contained in:
parent
dd0f622670
commit
4c411b0b6e
1 changed files with 2 additions and 2 deletions
|
@ -187,8 +187,8 @@ namespace OpenTK.Platform.Windows
|
|||
Window = window;
|
||||
DeviceTypes = new RawInputDevice[]
|
||||
{
|
||||
new RawInputDevice(HIDUsageGD.Joystick, RawInputDeviceFlags.DEVNOTIFY | RawInputDeviceFlags.EXINPUTSINK, window),
|
||||
new RawInputDevice(HIDUsageGD.GamePad, RawInputDeviceFlags.DEVNOTIFY | RawInputDeviceFlags.EXINPUTSINK, window),
|
||||
new RawInputDevice(HIDUsageGD.Joystick, RawInputDeviceFlags.DEVNOTIFY | RawInputDeviceFlags.INPUTSINK, window),
|
||||
new RawInputDevice(HIDUsageGD.GamePad, RawInputDeviceFlags.DEVNOTIFY | RawInputDeviceFlags.INPUTSINK, window),
|
||||
};
|
||||
|
||||
if (!Functions.RegisterRawInputDevices(DeviceTypes, DeviceTypes.Length, API.RawInputDeviceSize))
|
||||
|
|
Loading…
Reference in a new issue