How shybruh/fightingcontrolcenter-fcc works
Fighting Control Center is a desktop/web configurator for Hall-effect and selected other USB keyboards. The main workflow is to connect a board, identify its protocol, read its settings into application state, edit profiles and keyboard features, then write changes over the matching USB transport. The graph preserves documented feature areas and desktop integrations; several panel-to-runtime links are dashed because their implementation was not sampled. Relationships shown with source evidence come from the excerpts or SOURCE INDEX; broader capability links use the README.
Main entry points: store.ts Keyboard and profile state · registry.ts Device registry and layouts · App.tsx App entry and connection · mc.ts MCHOSE driver
Components 24
Configurator experience
- App entry and connection
app/src/App.tsx - Configurator shell
app/src/components/Shell.tsx - Feature panels
app/src/components - Lighting preview
app/src/lighting/preview.ts - Lighting presets
app/src/lighting/presets.ts
Profiles and device model
- Keyboard and profile state
app/src/store.ts - Device registry and layouts
app/src/devices/registry.ts - Keyboard layouts
app/src/data/layout.ts - Settings codec
app/src/hid/codec.ts
Keyboard protocols
- USB transport
app/src/hid/transport.ts - Sonix wire protocol
app/src/hid/protocol.ts - MCHOSE driver
app/src/hid/mc.ts - RongYuan driver
app/src/hid/ry.ts - Other keyboard drivers
app/src/hid
Desktop platform
- Tauri HID bridge
app/src/hid/tauri.ts - Native HID commands
app/src-tauri/src/hid.rs - Desktop integration
app/src/desktop/integration.ts - Update checking
app/src/desktop/updates.ts
Diagnostics and support
- Diagnostics
app/src/components/Diagnostics.tsx - Device scanning
app/src/diag/scan.ts - Keyboard reports
app/src/components/ReportDialog.tsx
Other components
- Keyboard user
- GitHub Releases and issues
- USB keyboard
Connections 31
- Keyboard user → App entry and connection: connects or edits
app/src/App.tsx - App entry and connection → Configurator shell: renders
app/src/App.tsx - Configurator shell → Feature panels: hosts
- Keyboard user → Feature panels: configures features
- Feature panels → Keyboard and profile state: updates settings
app/src/components/SettingsPanel.tsx - Feature panels → Lighting preview: previews effects
- Lighting presets → Lighting preview: supplies designs
- App entry and connection → Keyboard and profile state: connects keyboard
app/src/App.tsx - Keyboard and profile state → Device registry and layouts: identifies board
app/src/store.ts - Keyboard and profile state → USB transport: opens connection
app/src/store.ts - Device registry and layouts → Keyboard layouts: sets layout
app/src/devices/registry.ts - Device registry and layouts → Settings codec: configures capabilities
app/src/devices/registry.ts - Keyboard and profile state → MCHOSE driver: creates driver
app/src/store.ts - Keyboard and profile state → RongYuan driver: creates driver
app/src/store.ts - Keyboard and profile state → Other keyboard drivers: creates drivers
app/src/store.ts - MCHOSE driver → Settings codec: encodes settings
app/src/hid/mc.ts - RongYuan driver → Settings codec: encodes settings
app/src/hid/ry.ts - MCHOSE driver → Device registry and layouts: reads device definitions
app/src/hid/mc.ts - RongYuan driver → Device registry and layouts: reads device definitions
app/src/hid/ry.ts - MCHOSE driver → USB transport: exchanges reports
app/src/hid/mc.ts - RongYuan driver → USB transport: exchanges reports
app/src/hid/ry.ts - USB transport → USB keyboard: sends USB reports
- Keyboard and profile state → Tauri HID bridge: opens desktop HID
app/src/store.ts - Tauri HID bridge → Native HID commands: invokes HID commands
app/src/hid/tauri.ts - App entry and connection → Diagnostics: renders
app/src/App.tsx - Diagnostics → Device scanning: uses scan data
app/src/components/Diagnostics.tsx - Device scanning → Device registry and layouts: matches devices
app/src/diag/scan.ts - Keyboard user → Keyboard reports: requests report
- Keyboard reports → GitHub Releases and issues: opens issue
- Desktop integration → Keyboard and profile state: uses keyboard state
app/src/desktop/integration.ts - Update checking → GitHub Releases and issues: checks releases