Advertisement
Guest User

Ported Mouse Warp Patch for DInput

a guest
Dec 25th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.54 KB | None | 0 0
  1. --- dlls/dinput/mouse.c.old 2011-12-26 11:42:44.311649579 +0800
  2. +++ dlls/dinput/mouse.c 2011-12-26 12:11:43.371393337 +0800
  3. @@ -359,7 +359,7 @@
  4.                  wdata = pt1.y;
  5.              }
  6.  
  7. -            if (pt.x || pt.y)
  8. +            if (hook->pt.x<2 || hook->pt.y<2 || hook->pt.x>((2 * This->mapped_center.x)-2) || hook->pt.y>((2 * This->mapped_center.x)-2) )
  9.              {
  10.                  if ((This->warp_override == WARP_FORCE_ON) ||
  11.                      (This->warp_override != WARP_DISABLE && (This->base.dwCoopLevel & DISCL_EXCLUSIVE)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement