fork/GramFirmware

git clone https://git.julia.blue/fork/GramFirmware

Jonathan Haylettfeat: Add XInput supportf319e86

master
473 B21 linesraw
1#ifndef _COMMS_XINPUTBACKEND_HPP
2#define _COMMS_XINPUTBACKEND_HPP
3
4#include "core/CommunicationBackend.hpp"
5#include "core/InputSource.hpp"
6#include "stdlib.hpp"
7
8#include <Adafruit_USBD_XInput.hpp>
9
10class XInputBackend : public CommunicationBackend {
11  public:
12    XInputBackend(InputSource **input_sources, size_t input_source_count);
13    ~XInputBackend();
14    void SendReport();
15
16  private:
17    Adafruit_USBD_XInput *_xinput;
18    xinput_report_t _report = {};
19};
20
21#endif