diff --git a/switch2_reports.h b/switch2_reports.h new file mode 100644 index 0000000..ae1a08b --- /dev/null +++ b/switch2_reports.h @@ -0,0 +1,21 @@ +#pragma once + +#include +#include + +#include "switch_input.h" + +enum class Switch2InputReportId : uint8_t { + Common = 0x05, + Pro = 0x09, +}; + +struct Switch2InputReport { + Switch2InputReportId id; + std::array payload; +}; + +Switch2InputReport switch2_build_input_report( + Switch2InputReportId id, + const SwitchInputState& state, + uint32_t counter);