AntiMicroX
Public Member Functions | Data Fields
EffectVibrationPs5 Struct Reference

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

Public Member Functions

void build (int start, int end, int strength, int freq)
 Builds a vibration effect message. More...
 

Data Fields

u16 active_zones
 
u32 amplitude_zones
 
u16 _padding1
 
u8 frequency
 Frequeny in Hz. More...
 
u8 _padding2
 

Detailed Description

Effect message for a vibration trigger effect.

Member Function Documentation

◆ build()

void EffectVibrationPs5::build ( int  start,
int  end,
int  strength,
int  freq 
)
inline

Builds a vibration effect message.

Parameters
[in]startStart point of the effect. Value between 0 and 10. 0 is the beginning of the trigger range, 10 the end.
[in]endEnd point of the effect. Value between 2 and 10 which must be at least grater then start by two.
[in]strengthStrength of the feedback force. Value between 0 and 7.
[in]frequencyVirbration frequency in Hz. Value between 1 and 255.
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ _padding1

u16 EffectVibrationPs5::_padding1

◆ _padding2

u8 EffectVibrationPs5::_padding2

◆ active_zones

u16 EffectVibrationPs5::active_zones

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

◆ amplitude_zones

u32 EffectVibrationPs5::amplitude_zones

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

◆ frequency

u8 EffectVibrationPs5::frequency

Frequeny in Hz.


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