Skip to content

Commit c5bacb2

Browse files
Andrin Meierretailcoder
authored andcommitted
fix powerpoint hangup (#1610)
1 parent a3fee97 commit c5bacb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RetailCoder.VBE/Common/WinAPI/RawKeyboard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public RawKeyboard(IntPtr hwnd, bool captureOnlyInForeground)
1010
var rid = new RawInputDevice[1];
1111
rid[0].UsagePage = HidUsagePage.GENERIC;
1212
rid[0].Usage = HidUsage.Keyboard;
13-
rid[0].Flags = (captureOnlyInForeground ? RawInputDeviceFlags.NONE : RawInputDeviceFlags.INPUTSINK) | RawInputDeviceFlags.DEVNOTIFY;
13+
rid[0].Flags = (captureOnlyInForeground ? RawInputDeviceFlags.NONE : RawInputDeviceFlags.INPUTSINK);
1414
rid[0].Target = hwnd;
1515
if (!User32.RegisterRawInputDevices(rid, (uint)rid.Length, (uint)Marshal.SizeOf(rid[0])))
1616
{

RetailCoder.VBE/Common/WinAPI/RawMouse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public RawMouse(IntPtr hwnd, bool captureOnlyInForeground)
1010
var rid = new RawInputDevice[1];
1111
rid[0].UsagePage = HidUsagePage.GENERIC;
1212
rid[0].Usage = HidUsage.Mouse;
13-
rid[0].Flags = (captureOnlyInForeground ? RawInputDeviceFlags.NONE : RawInputDeviceFlags.INPUTSINK) | RawInputDeviceFlags.DEVNOTIFY;
13+
rid[0].Flags = (captureOnlyInForeground ? RawInputDeviceFlags.NONE : RawInputDeviceFlags.INPUTSINK);
1414
rid[0].Target = hwnd;
1515
if (!User32.RegisterRawInputDevices(rid, (uint)rid.Length, (uint)Marshal.SizeOf(rid[0])))
1616
{

0 commit comments

Comments
 (0)