Add protocol facade
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
a7f07c67b8
commit
1a6859855e
2 changed files with 36 additions and 0 deletions
23
switch_legacy_protocol.cpp
Normal file
23
switch_legacy_protocol.cpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include "switch_protocol.h"
|
||||
|
||||
#include "switch_pro_driver.h"
|
||||
|
||||
void switch_protocol_init() {
|
||||
switch_pro_init();
|
||||
}
|
||||
|
||||
void switch_protocol_set_input(const SwitchInputState& state) {
|
||||
switch_pro_set_input(state);
|
||||
}
|
||||
|
||||
void switch_protocol_task() {
|
||||
switch_pro_task();
|
||||
}
|
||||
|
||||
bool switch_protocol_is_ready() {
|
||||
return switch_pro_is_ready();
|
||||
}
|
||||
|
||||
void switch_protocol_set_rumble_callback(SwitchRumbleCallback callback) {
|
||||
switch_pro_set_rumble_callback(callback);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue