public static uint MouseTap(MouseTapFlags flags, int xButton = 0) { var inputData = new InputWrapper[] { MouseWrapper((MouseEventFlags)flags, xButton), MouseWrapper((MouseEventFlags)((int)flags << 1), xButton) }; return(Interop.SendInput(2, inputData)); }
public static uint MouseTap(MouseTapFlags flags, int xButton = 0) { var inputData = new InputWrapper[] { MouseWrapper((MouseEventFlags)flags, xButton), MouseWrapper((MouseEventFlags)((int)flags << 1), xButton) }; return Interop.SendInput(2, inputData); }