Skip to content

Commit

Permalink
1.68
Browse files Browse the repository at this point in the history
-fixed FFB not working
  • Loading branch information
Sebastian Waluś committed Jun 14, 2018
1 parent fee3cdc commit 8f2c8c5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Binary file modified MouseToVJoy/Release/MouseToVJoy.tlog/link.read.1.tlog
Binary file not shown.
Binary file modified MouseToVJoy/Release/vc141.pdb
Binary file not shown.
8 changes: 4 additions & 4 deletions MouseToVJoy/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion MouseToVJoy/mousetovjoy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion MouseToVJoy/vJoy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit 8f2c8c5

Please sign in to comment.