Skip to content

Commit d3b41aa

Browse files
committed
Public release of the MoConTool v1.0
A variety of patches and tweaks for your favorite mouse. It provides different filters that can help/improve your device.
1 parent 6f15893 commit d3b41aa

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

MoConTool/Filters/DoubleClicksFilter.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,19 @@ public override FilterResult process(int nCode, WPARAM wParam, LPARAM lParam)
4747
var d = Delta;
4848
//LSender.Send(this, $"{wParam} - delta {d}ms", Message.Level.Trace);
4949

50-
if(isPrevCodeDown)
50+
if(isPrevCodeDown && SysMessages.Eq(wParam, CodeUp))
5151
{
5252
isPrevCodeDown = false;
5353
LSender.Send(this, $"Prevent '{wParam}' because of previous {CodeDown}", Message.Level.Debug);
5454
return FilterResult.Abort;
5555
}
5656

57+
if(isPrevCodeDown && SysMessages.Eq(wParam, CodeDown))
58+
{
59+
isPrevCodeDown = false;
60+
LSender.Send(this, $"Expected '{CodeUp}' was not found. Reset flag.", Message.Level.Debug);
61+
}
62+
5763
if(SysMessages.Eq(wParam, CodeDown) && d < parent.Value)
5864
{
5965
LSender.Send(this, $"Found double-click bug of '{wParam}' because of delta {d}", Message.Level.Info);

MoConTool/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ namespace net.r_eg.MoConTool
3030
{
3131
internal static class Program
3232
{
33+
#if DEBUG
3334
internal const string ARGS_DEFAULT = "-InterruptedClick L 110;58;217 -MixedClicks L 1 -DoubleClicks L 112 -HyperactiveScroll 14;250";
35+
#else
36+
internal const string ARGS_DEFAULT = "-InterruptedClick L 110;58;217 -MixedClicks L 1 -DoubleClicks L 112";
37+
#endif
3438

3539
/// <summary>
3640
/// The main entry point for the application.

changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
MoConTool :: https://github.com/3F/MoConTool
33
_ _ _ _
44

5+
6+
[v1.0] 2017.05.15
7+
8+
* The first public release - A variety of patches and tweaks for your favorite mouse.
9+
It provides different filters that can help/improve your device.
10+

0 commit comments

Comments
 (0)