# toxicccccccc/feszed architecture

> Architecture diagram of the GitHub repository toxicccccccc/feszed, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/toxicccccccc/feszed
- Repository: https://github.com/toxicccccccc/feszed

## Overview

FESZED appears to be a Windows game-aiming tool: Redock captures screen regions, prepares frames for model inference, and uses detections to drive mouse input; it also persists settings and can display an overlay. The README only names the project, so product capabilities and relationships here rely on the sampled source and file tree. Several processing steps are represented as responsibilities within Redock, not as claims about unsampled modules. The repository contains multiple driver implementations; their selection or deployment relationship is not established by the excerpts.

Main entry points: [`R6 AI Source/Redock/main.cpp`](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/Redock/main.cpp) (Redock runtime), [`R6 AI Source/Redock/vhid_interface.h`](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/Redock/vhid_interface.h) (Mouse IOCTL contract), [`R6 AI Source/mousedriv/src/driver/vhid_mouse.c`](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/vhid_mouse.c) (HID mouse driver), [`R6 AI Source/mousedriv/src/driver/vhid_mouse_wdm.c`](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/vhid_mouse_wdm.c) (WDM mouse driver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Aim application"]
  node_redock["Redock runtime<br/>[main.cpp]"]
  node_settings["Settings file<br/>[settings.cfg]"]
  node_model["ONNX model<br/>[best_fp16.onnx]"]
end

subgraph group_presentation["Overlay"]
  node_overlay["Overlay renderer<br/>[main.cpp]"]
end

subgraph group_input["Mouse input"]
  node_protocol["Mouse IOCTL contract<br/>[vhid_interface.h]"]
  node_hid["HID mouse driver<br/>[vhid_mouse.c]"]
  node_descriptor["HID report descriptor<br/>[hid_descriptor.h]"]
  node_wdm["WDM mouse driver<br/>[vhid_mouse_wdm.c]"]
  node_wdm2["Mapper WDM driver"]
  node_shared["Shared input contract<br/>[vhid_interface.h]"]
end

node_user(("Operator"))
node_screen["Windows screen"]

node_user -->|"runs"| node_redock
node_redock -->|"loads and saves"| node_settings
node_screen -->|"provides frames"| node_redock
node_redock -.->|"runs inference"| node_model
node_redock -.->|"updates overlay"| node_overlay
node_redock -->|"formats input"| node_protocol
node_protocol -.->|"defines requests"| node_hid
node_hid -->|"uses descriptor"| node_descriptor
node_wdm -.->|"mirrors contract"| node_shared
node_wdm2 -.->|"accepts requests"| node_protocol

click node_redock "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/Redock/main.cpp"
click node_settings "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Release/settings.cfg"
click node_model "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Release/best_fp16.onnx"
click node_overlay "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/OverlayDLL/main.cpp"
click node_protocol "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/Redock/vhid_interface.h"
click node_hid "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/vhid_mouse.c"
click node_descriptor "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/hid_descriptor.h"
click node_wdm "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/vhid_mouse_wdm.c"
click node_wdm2 "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/vhid_mouse_wdm_v2.c"
click node_shared "https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/shared/vhid_interface.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_redock,node_settings,node_model,node_screen toneBlue
class node_overlay toneAmber
class node_protocol,node_hid,node_descriptor,node_wdm,node_wdm2,node_shared toneMint
class node_user toneIndigo
```

## Components

### Aim application

- [Redock runtime](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/Redock/main.cpp): `R6 AI Source/Redock/main.cpp`
- [Settings file](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Release/settings.cfg): `R6 AI Release/settings.cfg`
- [ONNX model](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Release/best_fp16.onnx): `R6 AI Release/best_fp16.onnx`

### Overlay

- [Overlay renderer](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/OverlayDLL/main.cpp): `R6 AI Source/OverlayDLL/main.cpp`

### Mouse input

- [Mouse IOCTL contract](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/Redock/vhid_interface.h): `R6 AI Source/Redock/vhid_interface.h`
- [HID mouse driver](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/vhid_mouse.c): `R6 AI Source/mousedriv/src/driver/vhid_mouse.c`
- [HID report descriptor](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/hid_descriptor.h): `R6 AI Source/mousedriv/src/driver/hid_descriptor.h`
- [WDM mouse driver](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/vhid_mouse_wdm.c): `R6 AI Source/mousedriv/src/driver/vhid_mouse_wdm.c`
- [Mapper WDM driver](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/driver/vhid_mouse_wdm_v2.c): `R6 AI Source/mousedriv/src/driver/vhid_mouse_wdm_v2.c`
- [Shared input contract](https://github.com/toxicccccccc/feszed/blob/main/R6%20AI%20Source/mousedriv/src/shared/vhid_interface.h): `R6 AI Source/mousedriv/src/shared/vhid_interface.h`

### Other components

- **Operator**
- **Windows screen**

## Connections

- Operator → Redock runtime: runs (evidence: `R6 AI Source/Redock/main.cpp`)
- Redock runtime → Settings file: loads and saves (evidence: `R6 AI Source/Redock/main.cpp`)
- Windows screen → Redock runtime: provides frames (evidence: `R6 AI Source/Redock/main.cpp`)
- Redock runtime → ONNX model: runs inference
- Redock runtime → Overlay renderer: updates overlay
- Redock runtime → Mouse IOCTL contract: formats input (evidence: `R6 AI Source/Redock/main.cpp`)
- Mouse IOCTL contract → HID mouse driver: defines requests
- HID mouse driver → HID report descriptor: uses descriptor (evidence: `R6 AI Source/mousedriv/src/driver/vhid_mouse.c`)
- WDM mouse driver → Shared input contract: mirrors contract
- Mapper WDM driver → Mouse IOCTL contract: accepts requests
