Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
21 lines
393 B
C++
21 lines
393 B
C++
#pragma once
|
|
|
|
#include <array>
|
|
#include <cstdint>
|
|
|
|
#include "switch_input.h"
|
|
|
|
enum class Switch2InputReportId : uint8_t {
|
|
Common = 0x05,
|
|
Pro = 0x09,
|
|
};
|
|
|
|
struct Switch2InputReport {
|
|
Switch2InputReportId id;
|
|
std::array<uint8_t, 63> payload;
|
|
};
|
|
|
|
Switch2InputReport switch2_build_input_report(
|
|
Switch2InputReportId id,
|
|
const SwitchInputState& state,
|
|
uint32_t counter);
|