From f79394cd8077c85f5c492c949f406b3364db5bc5 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Tue, 11 Aug 2026 12:23:07 +0900 Subject: [PATCH] Define Switch2 reports Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- switch2_reports.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 switch2_reports.h 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);