#include <PS5Trigger.h>
Definition at line 38 of file PS5Trigger.h.
◆ processTrigger()
void PS5Trigger::processTrigger |
( |
uint8_t * |
buffer | ) |
|
Apply the trigger data to a PS5 update buffer.
- Parameters
-
buffer | The 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
-
start | 0-255 trigger pull to start resisting |
force | The 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
-
start | trigger pull to start resisting |
end | trigger 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
-
start | trigger pull to start resisting |
keep | Keep effect active after max trigger pull |
begin_force | 0-255 force at start position |
mid_force | 0-255 force half way between start and max pull |
end_force | 0-255 force at max pull |
frequency | Vibration frequency of the trigger |
Definition at line 154 of file PS5Trigger.h.
◆ reportChanged
bool PS5Trigger::reportChanged = false |
The documentation for this class was generated from the following files: