mode_switch_hori.h 868 B

1234567891011121314151617181920212223
  1. // mode_switch_hori.h -- Switch HORIPAD / Pokkén Tournament Pro Pad personality (MODE_SW_HORI).
  2. //
  3. // Targets a REAL Switch console: a plain HID gamepad (HORI 0F0D:0092) the console accepts on plug-in with NO
  4. // handshake / SPI calibration / encryption -- unlike the genuine Pro Controller. This is the descriptor every
  5. // DIY Switch controller copies (the LUFA "Splatoon printer" descriptor); also recognized by SDL/Steam on PC.
  6. // 8-byte input report streamed at ~250Hz from task().
  7. #pragma once
  8. #include "controllers.h"
  9. class SwitchHoriController : public IController {
  10. public:
  11. void begin() override;
  12. void task() override;
  13. bool dynamicMount() const override
  14. {
  15. return true;
  16. }
  17. uint8_t maxSlots() const override;
  18. void usbIdentity() override;
  19. void beginPool() override;
  20. void mountSlots(uint8_t k) override;
  21. };
  22. extern SwitchHoriController g_switchHori;