/// <summary> /// Process mouse movement /// </summary> /// <param name="e"></param> void MouseMoveProcessing(MoveEventArgs e) { //if (!Configuration.LogMovement) { // return; //} //S.Dictionaries.IncrementValue(_inputsDuration, 0x9B, TimeSpan.FromTicks(1)); // hijacked an unassigned VK code's slot //double distance = S.Math.Distance2D(e.X, e.Y, _oldMouseX, _oldMouseY); //uint centiDistance = (uint)(distance * 100); // calculating distance to the centipixel, should be accurate enough //S.Dictionaries.IncrementValue(_inputsCount, 0x9B, centiDistance); // hijacked an unassigned VK code's slot //// if value has overflowed, add one to a counter that counts overflows //if (_inputsCount[0x9B] < centiDistance) { // S.Dictionaries.IncrementValue(_inputsCount, 0x9C, 1); // hijacked an unassigned VK code's slot //} //int coordsInt = S.Bits.CombineInt(e.X / 100, e.X / 100); //S.Dictionaries.IncrementValue(_mousePos, coordsInt, _stopwatches.MouseStop()); // TODO: This adds the new position of the mouse when really it should be the previous position added //_stopwatches.MouseStart(); //_oldMouseX = e.X; //_oldMouseY = e.Y; }
/// <summary> /// mouse move /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void OnMouseMove(object sender, MoveEventArgs e) { //if (Configuration.LogMovement) { // _mouseLocationQueue.Enqueue(e); //} }