mode_ps5.h 750 B

12345678910111213141516171819202122
  1. // mode_ps5.h -- Sony DualSense personality (MODE_PS5): 054C:0CE6 + gyro + split trackpad.
  2. //
  3. // Streams the DualSense USB input report (id 0x01) at ~250Hz from task(): sticks, triggers, PS-layout buttons,
  4. // gyro/accel, and BOTH Steam trackpads mapped onto the single DualSense touchpad (left pad -> left half, right
  5. // pad -> right half) via the shared touch packers in gamepad_util.
  6. #pragma once
  7. #include "controllers.h"
  8. class Ps5Controller : public IController {
  9. public:
  10. void begin() override;
  11. void task() override;
  12. bool dynamicMount() const override
  13. {
  14. return true;
  15. }
  16. uint8_t maxSlots() const override;
  17. void usbIdentity() override;
  18. void beginPool() override;
  19. void mountSlots(uint8_t k) override;
  20. };
  21. extern Ps5Controller g_ps5Ctl;