IDualShockHaptics.cs 580 B

1234567891011121314151617
  1. using UnityEngine.InputSystem.Haptics;
  2. namespace UnityEngine.InputSystem.DualShock
  3. {
  4. /// <summary>
  5. /// Extended haptics interface for DualShock controllers.
  6. /// </summary>
  7. public interface IDualShockHaptics : IDualMotorRumble
  8. {
  9. /// <summary>
  10. /// Set the color of the light bar on the back of the controller.
  11. /// </summary>
  12. /// <param name="color">Color to use for the light bar. Alpha component is ignored. Also,
  13. /// RBG values are clamped into [0..1] range.</param>
  14. void SetLightBarColor(Color color);
  15. }
  16. }