mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-23 09:21:05 +00:00
[Win] Retrieve joystick input even on background
This commit is contained in:
parent
dd0f622670
commit
4c411b0b6e
|
@ -187,8 +187,8 @@ namespace OpenTK.Platform.Windows
|
||||||
Window = window;
|
Window = window;
|
||||||
DeviceTypes = new RawInputDevice[]
|
DeviceTypes = new RawInputDevice[]
|
||||||
{
|
{
|
||||||
new RawInputDevice(HIDUsageGD.Joystick, RawInputDeviceFlags.DEVNOTIFY | RawInputDeviceFlags.EXINPUTSINK, window),
|
new RawInputDevice(HIDUsageGD.Joystick, RawInputDeviceFlags.DEVNOTIFY | RawInputDeviceFlags.INPUTSINK, window),
|
||||||
new RawInputDevice(HIDUsageGD.GamePad, RawInputDeviceFlags.DEVNOTIFY | RawInputDeviceFlags.EXINPUTSINK, window),
|
new RawInputDevice(HIDUsageGD.GamePad, RawInputDeviceFlags.DEVNOTIFY | RawInputDeviceFlags.INPUTSINK, window),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!Functions.RegisterRawInputDevices(DeviceTypes, DeviceTypes.Length, API.RawInputDeviceSize))
|
if (!Functions.RegisterRawInputDevices(DeviceTypes, DeviceTypes.Length, API.RawInputDeviceSize))
|
||||||
|
|
Loading…
Reference in a new issue