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() {