Add stateful HD-rumble decoder with TinyUSB report normalization
Decode Nintendo HD-rumble words once in firmware into conventional low/high magnitudes and normalize stripped control SET_REPORT vs complete interrupt OUT reports through one path.
This commit is contained in:
parent
20c9c98f89
commit
bce94d38ce
21 changed files with 902 additions and 180 deletions
|
|
@ -3,9 +3,10 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "switch_pro_driver.h"
|
||||
#include "switch_haptics.h"
|
||||
|
||||
void bluepad32_input_backend_init();
|
||||
void bluepad32_input_backend_start();
|
||||
bool bluepad32_input_backend_snapshot(SwitchInputState* out);
|
||||
void bluepad32_input_backend_report_sent();
|
||||
void bluepad32_input_backend_queue_rumble(const uint8_t rumble[8]);
|
||||
void bluepad32_input_backend_queue_rumble(const SwitchRumbleOutput& rumble);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue