Files
MimiCon/main/parsers/parser_8bitdo.h
T
dark98 69ebdb4331 Initial commit: MimiCon v1.0.0 - Universal Gamepad Mimic & Console Bridge
- Dual-Core Architecture: Dedicated 1000Hz USB gaming pipeline on Core 1 and BLE/Wi-Fi/Web telemetry on Core 0.
- Multi-Input BLE Host: Parsers for Xbox Wireless, Google Stadia, 8BitDo (Ultimate/Pro2/SN30), and Generic HOGP gamepads.
- Multi-Console USB Emulation: Nintendo Switch, PC DirectInput, PS3, PS4, Xbox 360 (libxsm3 cryptographic challenge-response), Original Xbox, and Couch Mouse/Keyboard.
- Onboard Web Portal & Captive Portal: Real-time SVG gamepad visualizer, stick deadzone calibration, button combo remapping, and Wi-Fi manager.
- Low-Latency Radio Management: Interactive SoftAP toggle to drop to 0-latency gaming mode.
- Dual OTA Firmware Flashing: Browser-based wireless firmware updater and automated Python OTA script.
- Strict Build Quality: Clean build under -Wall -Wextra with zero warnings or errors.
- Versioning & Licensing: Semantic Versioning v1.0.0 and GNU GPLv3 with Commercial Restrictions.
2026-10-17 20:21:09 +01:00

29 lines
810 B
C

#pragma once
#include "controller_parser.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Parse HID input report from 8BitDo Bluetooth Gamepads
* (Pro 2, Ultimate, SN30 Pro, Lite 2, M30, Zero 2, Micro)
*
* Supports:
* - Switch / Pro simple mode (Report ID 0x3F)
* - Switch / Pro standard mode (Report ID 0x30 / 0x21)
* - D-Input / Android mode (Report ID 0x01 or raw 8-10 byte reports)
* - X-Input mode (delegated to Xbox parser)
*
* @param report Raw report buffer received from BLE characteristic
* @param len Length of the report buffer
* @param out_state Pointer to controller_state_t to populate
* @return true if successfully parsed, false otherwise
*/
bool parser_8bitdo_parse(const uint8_t *report, size_t len, controller_state_t *out_state);
#ifdef __cplusplus
}
#endif