USB Host Shield 2.0
Classes | Public Member Functions | Public Attributes | List of all members
PS5Trigger Class Reference

#include <PS5Trigger.h>

Public Member Functions

void processTrigger (uint8_t *buffer)
 Apply the trigger data to a PS5 update buffer. More...
 
void Reset ()
 
void clearTriggerForce ()
 
void setTriggerForce (uint8_t start, uint8_t force)
 
void setTriggerForceSection (uint8_t start, uint8_t end)
 
void setTriggerForceEffect (uint8_t start, bool keep, uint8_t begin_force, uint8_t mid_force, uint8_t end_force, uint8_t frequency)
 

Public Attributes

bool reportChanged = false
 

Detailed Description

Definition at line 38 of file PS5Trigger.h.

Member Function Documentation

◆ processTrigger()

void PS5Trigger::processTrigger ( uint8_t *  buffer)

Apply the trigger data to a PS5 update buffer.

Parameters
bufferThe buffer at the start offset for this trigger data

Definition at line 34 of file PS5Trigger.cpp.

◆ Reset()

void PS5Trigger::Reset ( )
inline

Clear force feedback on trigger without report changed

Definition at line 100 of file PS5Trigger.h.

◆ clearTriggerForce()

void PS5Trigger::clearTriggerForce ( )
inline

Clear force feedback on trigger

Definition at line 109 of file PS5Trigger.h.

◆ setTriggerForce()

void PS5Trigger::setTriggerForce ( uint8_t  start,
uint8_t  force 
)
inline

Set continuous force feedback on trigger

Parameters
start0-255 trigger pull to start resisting
forceThe force amount

Definition at line 120 of file PS5Trigger.h.

◆ setTriggerForceSection()

void PS5Trigger::setTriggerForceSection ( uint8_t  start,
uint8_t  end 
)
inline

Set section force feedback on trigger

Parameters
starttrigger pull to start resisting
endtrigger pull to stop resisting

Definition at line 137 of file PS5Trigger.h.

◆ setTriggerForceEffect()

void PS5Trigger::setTriggerForceEffect ( uint8_t  start,
bool  keep,
uint8_t  begin_force,
uint8_t  mid_force,
uint8_t  end_force,
uint8_t  frequency 
)
inline

Set effect force feedback on trigger

Parameters
starttrigger pull to start resisting
keepKeep effect active after max trigger pull
begin_force0-255 force at start position
mid_force0-255 force half way between start and max pull
end_force0-255 force at max pull
frequencyVibration frequency of the trigger

Definition at line 154 of file PS5Trigger.h.

Member Data Documentation

◆ reportChanged

bool PS5Trigger::reportChanged = false

Definition at line 88 of file PS5Trigger.h.


The documentation for this class was generated from the following files: