AntiMicroX
Public Member Functions | Data Fields
EffectRigidPs5 Struct Reference

Effect message for a rigid trigger effect. More...

Public Member Functions

void build (int strength)
 Builds a rigid effect message. More...
 
void build_gradient (int strength)
 Builds a rigid gradient effect message. This effect starts with a strength of zero and slowly increases its strength until it reaches its given maximum strength at the end. More...
 

Data Fields

u16 active_zones
 
u32 force_zones
 
u32 _padding
 

Detailed Description

Effect message for a rigid trigger effect.

Member Function Documentation

◆ build()

void EffectRigidPs5::build ( int  strength)
inline

Builds a rigid effect message.

Parameters
[in]strengthStrength of the feedback force. Value between 0 and 7.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ build_gradient()

void EffectRigidPs5::build_gradient ( int  strength)
inline

Builds a rigid gradient effect message. This effect starts with a strength of zero and slowly increases its strength until it reaches its given maximum strength at the end.

Parameters
[in]strengthStrength of the feedback force at the end. Value between 0 and 7.
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ _padding

u32 EffectRigidPs5::_padding

◆ active_zones

u16 EffectRigidPs5::active_zones

Defines if force feedback is active in the corresponding tenth of the trigger. Bitfield of 10 right aligned bits.

◆ force_zones

u32 EffectRigidPs5::force_zones

Defines the force feedback strength in the corresponding tenth of the trigger. Bitfield of 30 right aligned bits. Every zone has three bits.


The documentation for this struct was generated from the following file: