From 119df942808a39d63a79d582519dec619d03ef76 Mon Sep 17 00:00:00 2001 From: Anders Malmgren Date: Sun, 30 Mar 2014 22:14:05 +0200 Subject: [PATCH] Added short hand versions for wheelUp and down --- FreePIE.Core.Plugins/MousePlugin.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/FreePIE.Core.Plugins/MousePlugin.cs b/FreePIE.Core.Plugins/MousePlugin.cs index f0308094..0547fb39 100644 --- a/FreePIE.Core.Plugins/MousePlugin.cs +++ b/FreePIE.Core.Plugins/MousePlugin.cs @@ -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); }