Changes

Jump to: navigation, search

User:Satijas

311 bytes added, 14:40, 7 April 2011
no edit summary
</big>
You can then use these in Design::update function
<big>
fTime = 0.1setForceTime(double); setForceDir(int); setForceFactor(float); fFactor = 1.0fsendForce(bool); fDirection = 45context->set(GF_CT_RMBL, int(0 or 1));
</big>
Add these functions in Design.cpp
<big>
bool Design::sendForce(bool force)
return fFactor;
}
</big>
 
In Engine.cpp, add this to run:
<big>
joystick->updateForce(design->getForceFactor(), design->getForceTime(), design->getForceDir());
</big>
[[Category:force feedback]]
1
edit

Navigation menu