BLE-Gamepad-Client 0.3.2
Loading...
Searching...
No Matches
BLEVibrationsCommand Struct Reference

Public Attributes

float leftTriggerMotor {0.0f}
 Power applied to the motor behind left trigger. Allowed values are between 0.0 and 1.0, where 1.0 represents the full power.
float rightTriggerMotor {0.0f}
 Power applied to the motor behind right trigger. Allowed values are between 0.0 and 1.0, where 1.0 represents the full power.
float leftMotor {0.0f}
 Power applied to the motor located in the left handle of the gamepad. This motor produces strong low-frequency vibrations. Allowed values are between 0.0 and 1.0, where 1.0 represents the full power.
float rightMotor {0.0f}
 Power applied to the motor located in the right handle of the gamepad. This motor produces more subtle high-frequency vibrations. Allowed values are between 0.0 and 1.0, where 1.0 represents the full power.
uint32_t durationMs {0}
 Vibration duration in milliseconds. Maximum allowed duration is 2550 ms (2.55 seconds). Rounded down to the closest multiple of 10 ms.
uint32_t pauseMs {0}
 Pause duration in milliseconds. Maximum allowed duration is 2550 ms (2.55 seconds). Rounded down to the closest multiple of 10 ms.
uint8_t cycles {1}
 Number of vibration-pause cycles. Defaults to 1 cycle.

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