mode_switch_hori.h 679 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. 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. };
  14. extern SwitchHoriController g_switchHori;