This commit is contained in:
parent
5f78e761a6
commit
9b3fe9535e
6 changed files with 54 additions and 5 deletions
|
@ -208,6 +208,12 @@ int PadIsDualShock(int Port)
|
|||
return (PadData[Port].IsAnalogue==2);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int PadCanVibrate(int Port)
|
||||
{
|
||||
return PadIsConnected(Port)&&PadData[Port].CanVibrate;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void SetPadRescan()
|
||||
{
|
||||
|
@ -293,6 +299,7 @@ int intensity;
|
|||
if (Pad->Status == PadStateFindPad)
|
||||
{
|
||||
Pad->Send = 0;
|
||||
Pad->CanVibrate=false;
|
||||
}
|
||||
if ( Pad->Send==0 || PadRescan)
|
||||
{
|
||||
|
@ -305,7 +312,11 @@ int intensity;
|
|||
}
|
||||
if (Pad->Status == PadStateStable)
|
||||
{
|
||||
if (PadSetActAlign(PortShift,PadAlign)) Pad->Send = 1;
|
||||
if (PadSetActAlign(PortShift,PadAlign))
|
||||
{
|
||||
Pad->Send = 1;
|
||||
Pad->CanVibrate=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue