# xdee2/easyinputs architecture

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

- Interactive diagram: https://gitdiagram.com/xdee2/easyinputs
- Repository: https://github.com/xdee2/easyinputs

## Overview

EasyInputs is a Unity XR input utility: a game or application selects a hand, reads controller buttons, touches, analog values and thumbstick axes, or requests haptic vibration. Companion scripts use those inputs for locomotion and hand animation. The excerpts show input-device reads and haptic dispatch; README documents the public API and hand selection. Animator assets and the example scene are present in the tree, but their runtime wiring is not established by the supplied evidence.

Main entry points: [`EasyInputs/Scripts/EasyInputs.cs`](https://github.com/xdee2/easyinputs/blob/main/EasyInputs/Scripts/EasyInputs.cs) (Input and haptics), [`EasyInputs/Scripts/EasyHandAnimatons.cs`](https://github.com/xdee2/easyinputs/blob/main/EasyInputs/Scripts/EasyHandAnimatons.cs) (Hand animation), [`EasyInputs/Scripts/EasyMovement.cs`](https://github.com/xdee2/easyinputs/blob/main/EasyInputs/Scripts/EasyMovement.cs) (Player movement), [`EasyInputs/Animator`](https://github.com/xdee2/easyinputs/tree/main/EasyInputs/Animator) (Hand animation assets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["XR Input API"]
  node_easyinputs["Input and haptics<br/>[EasyInputs.cs]"]
  node_xrdevices["XR devices"]
end

subgraph group_behaviors["Gameplay Behaviors"]
  node_movement["Player movement<br/>[EasyMovement.cs]"]
  node_handanimation["Hand animation"]
end

subgraph group_assets["Hand Animation Assets"]
  node_animator["Unity Animator"]
  node_animationassets["Hand animation assets"]
end

node_app(("Unity application"))

node_app -->|"requests inputs"| node_easyinputs
node_easyinputs -->|"reads features"| node_xrdevices
node_easyinputs -->|"sends haptics"| node_xrdevices
node_app -.->|"uses component"| node_movement
node_movement -->|"reads controls"| node_easyinputs
node_app -.->|"uses component"| node_handanimation
node_handanimation -->|"reads analog values"| node_easyinputs
node_handanimation -->|"sets parameters"| node_animator
node_animationassets -.->|"provides clips"| node_animator

click node_easyinputs "https://github.com/xdee2/easyinputs/blob/main/EasyInputs/Scripts/EasyInputs.cs"
click node_movement "https://github.com/xdee2/easyinputs/blob/main/EasyInputs/Scripts/EasyMovement.cs"
click node_handanimation "https://github.com/xdee2/easyinputs/blob/main/EasyInputs/Scripts/EasyHandAnimatons.cs"
click node_animationassets "https://github.com/xdee2/easyinputs/tree/main/EasyInputs/Animator"

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_easyinputs,node_xrdevices toneBlue
class node_movement,node_handanimation toneAmber
class node_animator,node_animationassets toneMint
class node_app toneIndigo
```

## Components

### XR Input API

- [Input and haptics](https://github.com/xdee2/easyinputs/blob/main/EasyInputs/Scripts/EasyInputs.cs): `EasyInputs/Scripts/EasyInputs.cs`
- **XR devices**

### Gameplay Behaviors

- [Player movement](https://github.com/xdee2/easyinputs/blob/main/EasyInputs/Scripts/EasyMovement.cs): `EasyInputs/Scripts/EasyMovement.cs`
- [Hand animation](https://github.com/xdee2/easyinputs/blob/main/EasyInputs/Scripts/EasyHandAnimatons.cs): `EasyInputs/Scripts/EasyHandAnimatons.cs`

### Hand Animation Assets

- **Unity Animator**
- [Hand animation assets](https://github.com/xdee2/easyinputs/tree/main/EasyInputs/Animator): `EasyInputs/Animator`

### Other components

- **Unity application**

## Connections

- Unity application → Input and haptics: requests inputs (evidence: `README.md`)
- Input and haptics → XR devices: reads features (evidence: `EasyInputs/Scripts/EasyInputs.cs`)
- Input and haptics → XR devices: sends haptics (evidence: `EasyInputs/Scripts/EasyInputs.cs`)
- Unity application → Player movement: uses component
- Player movement → Input and haptics: reads controls (evidence: `EasyInputs/Scripts/EasyMovement.cs`)
- Unity application → Hand animation: uses component
- Hand animation → Input and haptics: reads analog values (evidence: `EasyInputs/Scripts/EasyHandAnimatons.cs`)
- Hand animation → Unity Animator: sets parameters (evidence: `EasyInputs/Scripts/EasyHandAnimatons.cs`)
- Hand animation assets → Unity Animator: provides clips
