Files
MimiCon/main/console_output/usb_gamepad.h
T
dark98 21f54f1b92 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 18:26:50 +01:00

36 lines
764 B
C

#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "esp_err.h"
#include "controller_state.h"
#include "profile_manager.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Initialize USB Gamepad emulation with the specified console mode.
*/
esp_err_t usb_gamepad_init(console_mode_t initial_mode);
/**
* @brief Reconfigure USB descriptors and re-enumerate for a new console mode.
*/
esp_err_t usb_gamepad_change_mode(console_mode_t new_mode);
/**
* @brief Translate and send normalized controller state to the host console.
*/
esp_err_t usb_gamepad_send_state(const controller_state_t *state);
/**
* @brief Check if USB device is mounted and ready to transmit reports.
*/
bool usb_gamepad_is_mounted(void);
#ifdef __cplusplus
}
#endif