jprefa.blogg.se

Smoothmouse game
Smoothmouse game






smoothmouse game smoothmouse game
  1. #Smoothmouse game install
  2. #Smoothmouse game code

The rest of the code is just the code of BusDog that I didn't write, so I cannot explain well to you how it works.īut here's the main code of that program: Return Convert.ToByte(ba.Get(bitNumber)) įilterTrace.Buffer contains the HID packets of the mouse and the if() chain is used to parse the packets and do actions according to what I receive. WinAPI.mouse_event(MOUSEEVENTF_WHEEL, 0, 0, -120, 0) īitArray ba = new BitArray( new Byte ) WinAPI.mouse_event(MOUSEEVENTF_WHEEL, 0, 0, 120, 0) Wheel if (filterTrace.Buffer = 0x01) // UP MOUSE_F if (GetBit(filterTrace.Buffer, 4) = 1) MOUSE_B if (GetBit(filterTrace.Buffer, 3) = 1) WinAPI.mouse_event(MOUSEEVENTF_MIDDLEUP, , WinAPI.mouse_event(MOUSEEVENTF_MIDDLEDOWN, , MOUSE_M if (GetBit(filterTrace.Buffer, 2) = 1) WinAPI.mouse_event(MOUSEEVENTF_RIGHTUP, , WinAPI.mouse_event(MOUSEEVENTF_RIGHTDOWN, , MOUSE_R if (GetBit(filterTrace.Buffer, 1) = 1) WinAPI.mouse_event(MOUSEEVENTF_LEFTDOWN, , MOUSE_L if (GetBit(filterTrace.Buffer, 0) = 1) Y Coordinates if (filterTrace.Buffer = 0x00) // UP += filterTrace.Buffer Įlse if (filterTrace.Buffer = 0xFF) // DOWN X Coordinates if (filterTrace.Buffer = 0x00) // UP Void RecievedFilterTraces( object sender, FilterTraceArrivedEventArgs e)įoreach (FilterTrace filterTrace in e.Traces.ToArray()) The mouse smoothing is based on the interpolation equation below: This program idea came from a find I made when I played Star Citizen, Mouse Smoothing.

  • To close the program, unselect the Device you selected earlier then just Alt-F4 the app ( Alt+Tab can help).
  • To use it for a game, you need to disable Raw Mouse Input in the option of the game if the game allow it, else you cannot use it.
  • Connect a second mouse to your PC (else Windows will not display mouse cursor), but don't use this 2 nd mouse, use your main mouse connected to the VID/PID you chosen.
  • smoothmouse game

  • (Smooth Value slider modify the variable MouseSmoothingValue/InterpSpeed).
  • Select your mouse according to its VID/PID values ( Identify a VID PID for a USB Device - InterWorks).
  • Grab devcon there then put it into the Release folder.
  • #Smoothmouse game install

  • Run the program and install the driver when it's asked.
  • First thing first, you need to install the USB sniffer driver to be able to read HID packet of the mouse.
  • It's used to prevent jitter mouse movement thus add camera movement realism. This program adds the function of mouse smoothing to your mouse, if you don't know what is mouse smoothing, it's basically a delay between your mouse physical moves and the mouse coordinates (camera in game). (This code is just a layer implemented into another code: ). (You need Visual Studio and 2 mouses) Introduction








    Smoothmouse game