How does Overwatch Mouse Sensitivity correlate to Moving the mouse with C++? menu

User Tag List

Results 1 to 5 of 5
  1. #1
    seldane's Avatar Member
    Reputation
    2
    Join Date
    Mar 2009
    Posts
    18
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How does Overwatch Mouse Sensitivity correlate to Moving the mouse with C++?

    The code to move the mouse 1 pixel in the x direction is really simple. However, if your Overwatch mouse sensitivity is high, this seems to move more than one pixel. How does Overwatch Mouse Sensitivity correlate to Moving the mouse with SendInput by 1 pixel?

    I imagine there is a function along the lines of:
    Actual number of pixels moved = (number of Pixels moved by Send Input) * (Overwatch Mouse Sensitivity) * 0.1

    int movedistancex = 1;
    int movedistancey = 0;

    INPUT input;
    input.type = INPUT_MOUSE;
    input.mi.mouseData = 0;
    input.mi.time = 0;

    input.mi.dwFlags = MOUSEEVENTF_MOVE;

    input.mi.dx = movedistancex;
    input.mi.dy = movedistancey;

    SendInput(1, &input, sizeof(input));

    How does Overwatch Mouse Sensitivity correlate to Moving the mouse with C++?
  2. #2
    rheos's Avatar Banned
    Reputation
    4
    Join Date
    Jun 2016
    Posts
    32
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey,

    You can easily find your answer in another forum that I can't share here. pm me if you didn't find it.

    Peace

  3. #3
    Torpedoes's Avatar ★ Elder ★ Doomsayer
    Authenticator enabled
    Reputation
    1147
    Join Date
    Sep 2013
    Posts
    956
    Thanks G/R
    148/415
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by seldane View Post
    SendInput(1, &input, sizeof(input));
    Is there a reason you're not just using SetCursorPos?

  4. Thanks seldane (1 members gave Thanks to Torpedoes for this useful post)
  5. #4
    seldane's Avatar Member
    Reputation
    2
    Join Date
    Mar 2009
    Posts
    18
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I figured out the answer through numerous measurements.

    const int sensitivity = 9; // Overwatch Mouse Sensitivity
    const float pixelsmoved = 0.116* sensitivity; // this is the number of Overwatched pixels moved. 0.116 * sensitivity


    You move one unit of Pixelsmoved for every 1 pixel that SendInput moves.

  6. Thanks atmos (1 members gave Thanks to seldane for this useful post)
  7. #5
    seldane's Avatar Member
    Reputation
    2
    Join Date
    Mar 2009
    Posts
    18
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Torpedoes View Post
    Is there a reason you're not just using SetCursorPos?
    I could not get SetCursorPos to work, it would point the mouse in really weird positions even when I tried to move one pixel, like point me upward and spin me around. Are you using SetCursorPos with success?
    Last edited by seldane; 07-09-2016 at 02:25 PM.

Similar Threads

  1. Replies: 12
    Last Post: 10-21-2016, 07:42 AM
  2. [Bot] did sombody know how to move the mouse in NODE.
    By woshixgf in forum Overwatch Exploits|Hacks
    Replies: 3
    Last Post: 07-22-2016, 11:32 AM
  3. How does Glider Profiles work
    By Eony in forum World of Warcraft General
    Replies: 0
    Last Post: 02-21-2007, 07:24 PM
  4. how does fishbuddy work??
    By Zanatons in forum World of Warcraft General
    Replies: 1
    Last Post: 08-26-2006, 07:56 PM
  5. auto-it? how does it work
    By Krazzee in forum World of Warcraft General
    Replies: 4
    Last Post: 06-22-2006, 02:28 AM
All times are GMT -5. The time now is 06:40 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search