Guest User

Untitled

a guest
May 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. uint winapiFlag = 0;
  2. if ((int)e.ButtonFlags != 0)
  3. {
  4. byte f = (byte)e.ButtonFlags;
  5. if ((f & (byte)MouseButtonFlags.LeftDown) > 0) winapiFlag |= MOUSEEVENTF_LEFTDOWN;
  6. if ((f & (byte)MouseButtonFlags.LeftUp) > 0) winapiFlag |= MOUSEEVENTF_LEFTUP;
  7. if ((f & (byte)MouseButtonFlags.RightDown) > 0) winapiFlag |= MOUSEEVENTF_RIGHTDOWN;
  8. if ((f & (byte)MouseButtonFlags.RightUp) > 0) winapiFlag |= MOUSEEVENTF_RIGHTUP;
Add Comment
Please, Sign In to add comment