private static void ImGui_ImplGlfw_ScrollCallback(Window window, double x, double y) { prevUserCallbackScroll?.Invoke(window, x, y); ImGuiIOPtr io = ImGui.GetIO(); io.MouseWheelH += (float)x; io.MouseWheel += (float)y; }
private int CallOutside(int nCode, int wParam, MouseStruct lParam) { if (!(nCode >= 0)) { return(CallNextHookEx(hookId, nCode, wParam, lParam)); } bool shouldBlock = mc.Invoke(lParam.pt, wParam); if (!shouldBlock) { return(CallNextHookEx(hookId, nCode, wParam, lParam)); } return(1); }