This commit is contained in:
parent
0133d85f65
commit
183fc41a07
3 changed files with 32 additions and 10 deletions
|
@ -74,16 +74,7 @@ u8 CPadVibrationManager::s_currentIntensityValues[2];
|
|||
---------------------------------------------------------------------- */
|
||||
void CPadVibrationManager::init()
|
||||
{
|
||||
int i,j;
|
||||
|
||||
for(i=0;i<2;i++)
|
||||
{
|
||||
for(j=0;j<MAX_VIBES_PER_PAD;j++)
|
||||
{
|
||||
s_vibeControls[i][j].m_active=false;
|
||||
}
|
||||
s_currentIntensityValues[i]=0;
|
||||
}
|
||||
stopAllVibration();
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
@ -177,5 +168,25 @@ void CPadVibrationManager::setVibration(int _port,VIBE_TYPE _type,u8 _ferocity)
|
|||
vc->m_ferocity=_ferocity;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CPadVibrationManager::stopAllVibration()
|
||||
{
|
||||
int i,j;
|
||||
|
||||
for(i=0;i<2;i++)
|
||||
{
|
||||
for(j=0;j<MAX_VIBES_PER_PAD;j++)
|
||||
{
|
||||
s_vibeControls[i][j].m_active=false;
|
||||
}
|
||||
s_currentIntensityValues[i]=0;
|
||||
}
|
||||
}
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
Loading…
Add table
Add a link
Reference in a new issue