mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 23:11:13 +00:00
Merge branch 'issue_488_input_events_fired_more_than_once' into 488_fix2
This commit is contained in:
commit
2d702337d2
|
@ -755,43 +755,43 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
case WindowMessage.MOUSEWHEEL:
|
||||
HandleMouseWheel(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
case WindowMessage.MOUSEHWHEEL:
|
||||
HandleMouseHWheel(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
case WindowMessage.LBUTTONDOWN:
|
||||
HandleLButtonDown(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
case WindowMessage.MBUTTONDOWN:
|
||||
HandleMButtonDown(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
case WindowMessage.RBUTTONDOWN:
|
||||
HandleRButtonDown(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
case WindowMessage.XBUTTONDOWN:
|
||||
HandleXButtonDown(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
case WindowMessage.LBUTTONUP:
|
||||
HandleLButtonUp(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
case WindowMessage.MBUTTONUP:
|
||||
HandleMButtonUp(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
case WindowMessage.RBUTTONUP:
|
||||
HandleRButtonUp(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
case WindowMessage.XBUTTONUP:
|
||||
HandleXButtonUp(handle, message, wParam, lParam);
|
||||
break;
|
||||
return IntPtr.Zero;
|
||||
|
||||
// Keyboard events:
|
||||
case WindowMessage.KEYDOWN:
|
||||
|
@ -841,7 +841,7 @@ namespace OpenTK.Platform.Windows
|
|||
{
|
||||
if (mouse_capture_count == 0)
|
||||
{
|
||||
Functions.SetCapture(window.Handle);
|
||||
Functions.SetCapture(child_window.Handle);
|
||||
}
|
||||
mouse_capture_count++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue