From 6e0954ea38f00b839086d278eb402c4e73ee9d60 Mon Sep 17 00:00:00 2001 From: John Toman Date: Wed, 3 Feb 2010 03:12:13 +0000 Subject: [PATCH] miscellaneous cleanups before release of 4.1 git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@127 c05e91a0-76c8-4ec0-b377-ef19ce7cc080 --- src/axis.cpp | 2 +- src/axis.h | 1 + src/configure | 1 + src/constant.h | 2 +- src/joypad.cpp | 4 ---- 5 files changed, 4 insertions(+), 6 deletions(-) create mode 120000 src/configure diff --git a/src/axis.cpp b/src/axis.cpp index 2bb4eeb..0f19995 100644 --- a/src/axis.cpp +++ b/src/axis.cpp @@ -360,7 +360,7 @@ void Axis::move( bool press ) { // mouse by the rounded magnitude sumDist += fdist; dist = static_cast(rint(sumDist)); - sumDist -= dist; + sumDist -= dist; } //if not gradient, always go full speed. else dist = maxSpeed; diff --git a/src/axis.h b/src/axis.h index d05f510..ef6d488 100644 --- a/src/axis.h +++ b/src/axis.h @@ -10,6 +10,7 @@ #include #include #include "constant.h" +#include "error.h" //default and arbitrary values for dZone and xZone #define DZONE 3000 diff --git a/src/configure b/src/configure new file mode 120000 index 0000000..30fa1ce --- /dev/null +++ b/src/configure @@ -0,0 +1 @@ +config \ No newline at end of file diff --git a/src/constant.h b/src/constant.h index 2469fbb..0ada080 100644 --- a/src/constant.h +++ b/src/constant.h @@ -25,7 +25,7 @@ #define SENSITIVITY_MIN 1e-8F #define SENSITIVITY_MAX 1e+8F -#define NAME "QJoyPad 4.0" +#define NAME "QJoyPad 4.1" #define MOUSE_OFFSET 400 diff --git a/src/joypad.cpp b/src/joypad.cpp index a8bb838..0aa1347 100644 --- a/src/joypad.cpp +++ b/src/joypad.cpp @@ -258,10 +258,6 @@ void JoyPad::handleJoyEvents(int fd) { //pass that event on to the joypad! jsevent(msg); } - - //sleep for a moment. This is just to keep us from throwing all the - //available processer power into madly checking for new events. - //usleep(10000); } void JoyPad::releaseWidget() {