Skip to content

Commit 119df94

Browse files
Added short hand versions for wheelUp and down
1 parent 2f362be commit 119df94

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

FreePIE.Core.Plugins/MousePlugin.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,18 @@ public int wheel
256256
set { plugin.Wheel = value; }
257257
}
258258

259+
public bool wheelUp
260+
{
261+
get { return plugin.Wheel == wheelMax; }
262+
set { plugin.Wheel = value ? wheelMax : 0; }
263+
}
264+
265+
public bool wheelDown
266+
{
267+
get { return plugin.Wheel == -wheelMax; }
268+
set { plugin.Wheel = value ? -wheelMax : 0; }
269+
}
270+
259271
public bool leftButton
260272
{
261273
get { return plugin.IsButtonDown(0); }

0 commit comments

Comments
 (0)