mode_switch_hori.h 721 B

123456789101112131415
  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, whose USB init the console
  5. // handles fussily. This is the descriptor every DIY Switch controller copies (the LUFA "Splatoon printer"
  6. // descriptor). Also recognized by SDL/Steam on PC. 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. };
  14. extern SwitchHoriController g_switchHori;