Define Switch2 reports
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
950c5de1ea
commit
f79394cd80
1 changed files with 21 additions and 0 deletions
21
switch2_reports.h
Normal file
21
switch2_reports.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue