mode_xinput.h 451 B

123456789101112131415161718
  1. // Static wired Xbox 360 personality; one selected RF bond supplies input.
  2. #pragma once
  3. #include "controllers.h"
  4. #include <stdint.h>
  5. class XboxController : public IController {
  6. public:
  7. void begin() override;
  8. void onReport45(int slot, const uint8_t *rep, bool fresh,
  9. uint8_t bodyTlen) override;
  10. void task() override;
  11. bool dynamicMount() const override
  12. {
  13. return false;
  14. }
  15. void usbIdentity() override;
  16. };
  17. extern XboxController g_xboxCtl;