private unsafe static IntPtr LLMouseCallback(int nCode, MouseButtonsState wParam, MouseLowlevelHookStruct *lParam) { if (nCode > -1) { MouseEvent.Invoke(nCode, wParam, *lParam); } return(User32.CallNextHookEx(KBHook, nCode, (IntPtr)wParam, (IntPtr)lParam)); }
internal static void InitInputManager(Game game) { _lastFrameMouseState = new MouseButtonsState(); _actualFrameMouseState = new MouseButtonsState(); }