forked from speed-dreams/speed-dreams-code
ff pausing test
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6912 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 42592448d4c91ff775e5be536830c443c6213c10 Former-commit-id: 18bd0478c38374c0356db29494e7433820cb2e66
This commit is contained in:
parent
c97ab90c4e
commit
fa08657881
2 changed files with 15 additions and 1 deletions
|
@ -260,6 +260,10 @@ static const int nbControl = sizeof(controlList) / sizeof(controlList[0]);
|
|||
|
||||
static const std::string Yn[] = {HM_VAL_YES, HM_VAL_NO};
|
||||
|
||||
//forcefeedback
|
||||
//we will use this as a reference to know if the race engine is paused to disable force feedback in case the pause menu is activated
|
||||
double forceFeedbackRaceEngineTime;
|
||||
|
||||
/*
|
||||
* Changes from original:
|
||||
*
|
||||
|
@ -1223,6 +1227,16 @@ static void common_drive(const int index, tCarElt* car, tSituation *s)
|
|||
|
||||
//send force feedback effect to the wheel
|
||||
//dont' even try to do it if steer command is on a keyboard because it somehow manage to crash (unable to identify the joystic to send FF to?)
|
||||
|
||||
// Set the running flags.
|
||||
// ReSituation::self().data()->_reRunning = 1;
|
||||
// ReSituation::self().data()->s->_raceState &= ~RM_RACE_PAUSED;
|
||||
// ReSituation::self().data()->_reState = RE_STATE_RACE;
|
||||
|
||||
// if( s->raceInfo->_raceState != RM_RACE_PAUSED ){
|
||||
|
||||
//_reState = RE_STATE_RACE
|
||||
|
||||
if(cmd[CMD_LEFTSTEER].type != GFCTRL_TYPE_KEYBOARD){
|
||||
// v<- this controller detenction does not make ->v
|
||||
// v<- sense to me ->v
|
||||
|
|
|
@ -90,4 +90,4 @@ class TGFCLIENT_API ForceFeedbackManager {
|
|||
int globalMultiplier;
|
||||
|
||||
};
|
||||
#endif // __forcefeedback_h__
|
||||
#endif // __forcefeedback_h__
|
||||
|
|
Loading…
Reference in a new issue