diff --git a/MouseToVJoy/Release/MouseToVJoy.tlog/link.read.1.tlog b/MouseToVJoy/Release/MouseToVJoy.tlog/link.read.1.tlog index ee02b77..b28c2bb 100644 Binary files a/MouseToVJoy/Release/MouseToVJoy.tlog/link.read.1.tlog and b/MouseToVJoy/Release/MouseToVJoy.tlog/link.read.1.tlog differ diff --git a/MouseToVJoy/Release/vc141.pdb b/MouseToVJoy/Release/vc141.pdb index ddff993..d0d40f8 100644 Binary files a/MouseToVJoy/Release/vc141.pdb and b/MouseToVJoy/Release/vc141.pdb differ diff --git a/MouseToVJoy/main.cpp b/MouseToVJoy/main.cpp index b28c810..afe687b 100644 --- a/MouseToVJoy/main.cpp +++ b/MouseToVJoy/main.cpp @@ -74,16 +74,16 @@ void updateCode() { Sleep(2); if (fFB.getFfbSize().getEffectType() == "Constant") { if (fFB.getFfbSize().getDirection() > 100) { - ffbStrength = (fFB.getFfbSize().getMagnitude())*(sw.elapsedMilliseconds()*0.0001); + ffbStrength = (fFB.getFfbSize().getMagnitude())*(sw.elapsedMilliseconds()*0.001); } else { - ffbStrength = -(fFB.getFfbSize().getMagnitude())*(sw.elapsedMilliseconds()*0.0001); + ffbStrength = -(fFB.getFfbSize().getMagnitude())*(sw.elapsedMilliseconds()*0.001); } } if (fFB.getFfbSize().getEffectType() == "Period") { - ffbStrength = (fFB.getFfbSize().getOffset()*0.5)*(sw.elapsedMilliseconds()*0.0001); + ffbStrength = (fFB.getFfbSize().getOffset()*0.5)*(sw.elapsedMilliseconds()*0.001); } - if (fR.result(21) == 1) { + if (fR.result(21) == 1) { axisX = axisX + ffbStrength; ffbStrength = 0; } diff --git a/MouseToVJoy/mousetovjoy.h b/MouseToVJoy/mousetovjoy.h index b9f1453..acf989e 100644 --- a/MouseToVJoy/mousetovjoy.h +++ b/MouseToVJoy/mousetovjoy.h @@ -17,6 +17,6 @@ class MouseToVjoy { //**Gets if the Center Reduction is used, when used function mouselogic() uses linear algorithm to calculate sensitivity, the more the joystick is centered the sloweer the sensitivity(max 1.0 of the sensitivity.), the further the faster the sensitivity(max = CenterReduction value * Sensitivity ) //bool _useCenterReduction; //define center multiplier to be able to modify it during function. - DOUBLE _centerMultiplier = 1.0; + DOUBLE _centerMultiplier; }; #endif \ No newline at end of file diff --git a/MouseToVJoy/vJoy.cpp b/MouseToVJoy/vJoy.cpp index 66b55d6..1de4f4c 100644 --- a/MouseToVJoy/vJoy.cpp +++ b/MouseToVJoy/vJoy.cpp @@ -4,7 +4,7 @@ int VJoy::testDriver() { printf("Mouse to vJoy Feeder\n"); printf("==================================\n"); printf("Author: R1per\n"); - printf("Version: 1.67\n"); + printf("Version: 1.68\n"); // Get the driver attributes (Vendor ID, Product ID, Version Number) if (!vJoyEnabled()) {