xbox-controller-core 0.1.2

no_std parser for Xbox Series controller BLE input reports
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# xbox-controller-core

An allocation-free, `no_std` parser for Xbox Wireless Controller BLE input
reports. It contains no ESP, Embassy, operating-system, or Bluetooth-stack
dependencies.

```rust
use xbox_controller_core::parse_input_report;

fn consume(bytes: &[u8]) -> Result<(), xbox_controller_core::ParseError> {
    let state = parse_input_report(bytes)?;
    // Use state.buttons, state.sticks, and state.triggers.
    Ok(())
}
```

Use the separate `esp-xbox-controller` crate when you also want ESP32 BLE
scanning, pairing, HID discovery, keepalives, and reconnection management.