Skip to content

Commit

Permalink
Added short hand versions for wheelUp and down
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersMalmgren committed Mar 30, 2014
1 parent 2f362be commit 119df94
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions FreePIE.Core.Plugins/MousePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,18 @@ public int wheel
set { plugin.Wheel = value; }
}

public bool wheelUp
{
get { return plugin.Wheel == wheelMax; }
set { plugin.Wheel = value ? wheelMax : 0; }
}

public bool wheelDown
{
get { return plugin.Wheel == -wheelMax; }
set { plugin.Wheel = value ? -wheelMax : 0; }
}

public bool leftButton
{
get { return plugin.IsButtonDown(0); }
Expand Down

0 comments on commit 119df94

Please sign in to comment.