How metruu1337/hosas-bridge works
HOSAS Bridge is a Windows app for identifying physical controllers, configuring profiles and routing their input to a persistent virtual joystick, with optional device hiding. The main workflow is user setup and mapping through the app, profile activation, live input processing, and virtual-controller output. The graph also preserves setup, diagnostics, settings, and tuning capabilities documented in the README. Relationships are limited to the shown excerpts, SOURCE INDEX references, and README; some runtime wiring is therefore omitted.
Main entry points: MainViewModel.cs Main controls · App.xaml.cs App startup · ProfileSession.cs Profile session · BridgeRuntime.cs Bridge runtime
Components 26
Desktop app
- App startup
src/HOSASBridge.App/App.xaml.cs - Main controls
src/HOSASBridge.App/ViewModels/MainViewModel.cs - Device setup UI
src/HOSASBridge.App/ViewModels/DevicesViewModel.cs - Profile editor
src/HOSASBridge.App/ViewModels/ProfileViewModel.cs - Axis preview
src/HOSASBridge.App/ViewModels/AxisPreviewViewModel.cs - Diagnostics UI
src/HOSASBridge.App/ViewModels/DiagnosticsViewModel.cs
Runtime coordination
- Profile session
src/HOSASBridge.App/Services/ProfileSession.cs - Bridge runtime
src/HOSASBridge.Infrastructure/BridgeRuntime.cs - User settings
src/HOSASBridge.Infrastructure/UserSettings.cs - Diagnostic log
src/HOSASBridge.Diagnostics/DiagnosticLog.cs
Input processing
- Input pipeline
src/HOSASBridge.Core/InputPipeline.cs - Axis transforms
src/HOSASBridge.Core/AxisTransformer.cs - Mode controller
src/HOSASBridge.Core/ModeController.cs - Device identity
src/HOSASBridge.Core/DeviceIdentityResolver.cs
Profiles and setup
- Profile repository
src/HOSASBridge.Profiles/ProfileRepository.cs - Profile validation
src/HOSASBridge.Profiles/ProfileValidator.cs - Preset catalog
src/HOSASBridge.Profiles/PresetCatalog.cs - Profile defaults
src/HOSASBridge.Profiles/ProfileDefaults.cs - Setup operations
src/HOSASBridge.Setup/SetupOperations.cs
Device integrations
- DirectInput provider
src/HOSASBridge.Input.DirectInput/DirectInputProvider.cs - XInput provider
src/HOSASBridge.Input.DirectInput/XInputProvider.cs - vJoy adapter
src/HOSASBridge.Output.VJoy/VJoyAdapter.cs - Device hiding
src/HOSASBridge.DeviceHiding/HidHideService.cs
Other components
- User
- HidHide CLI
- vJoy driver
Connections 31
- User → Main controls: configures
README.md - App startup → Main controls: creates
src/HOSASBridge.App/App.xaml.cs - Main controls → Profile session: uses
src/HOSASBridge.App/ViewModels/MainViewModel.cs - Main controls → Device setup UI: creates
src/HOSASBridge.App/ViewModels/MainViewModel.cs - Main controls → Profile editor: creates
src/HOSASBridge.App/ViewModels/MainViewModel.cs - Main controls → Diagnostics UI: creates
src/HOSASBridge.App/ViewModels/MainViewModel.cs - Profile session → Profile repository: saves through
src/HOSASBridge.App/Services/ProfileSession.cs - Profile session → Profile validation: validates with
src/HOSASBridge.App/Services/ProfileSession.cs - Profile session → Bridge runtime: activates profile
src/HOSASBridge.App/Services/ProfileSession.cs - Profile editor → Preset catalog: uses
src/HOSASBridge.App/ViewModels/ProfileViewModel.cs - Profile editor → Axis preview: creates
src/HOSASBridge.App/ViewModels/ProfileViewModel.cs - Axis preview → Bridge runtime: reads snapshots
src/HOSASBridge.App/ViewModels/AxisPreviewViewModel.cs - Axis preview → Axis transforms: previews with
src/HOSASBridge.App/ViewModels/AxisPreviewViewModel.cs - Bridge runtime → Input pipeline: processes through
src/HOSASBridge.Infrastructure/BridgeRuntime.cs - Bridge runtime → Device identity: resolves roles
src/HOSASBridge.Infrastructure/BridgeRuntime.cs - Input pipeline → Axis transforms: transforms axes
src/HOSASBridge.Core/InputPipeline.cs - Input pipeline → Mode controller: applies modes
src/HOSASBridge.Core/InputPipeline.cs - App startup → DirectInput provider: initializes
src/HOSASBridge.App/App.xaml.cs - App startup → XInput provider: initializes
src/HOSASBridge.App/App.xaml.cs - App startup → vJoy adapter: initializes
src/HOSASBridge.App/App.xaml.cs - Main controls → Device hiding: uses
src/HOSASBridge.App/ViewModels/MainViewModel.cs - Device setup UI → Setup operations: invokes
src/HOSASBridge.App/ViewModels/DevicesViewModel.cs - Device setup UI → Preset catalog: uses
src/HOSASBridge.App/ViewModels/DevicesViewModel.cs - Device hiding → HidHide CLI: runs CLI
src/HOSASBridge.DeviceHiding/HidHideService.cs - Setup operations → vJoy driver: configures
src/HOSASBridge.Setup/SetupOperations.cs - Preset catalog → Profile repository: uses
src/HOSASBridge.Profiles/PresetCatalog.cs - Preset catalog → Profile defaults: uses
src/HOSASBridge.Profiles/PresetCatalog.cs - Profile repository → Profile validation: validates profiles
src/HOSASBridge.Profiles/ProfileRepository.cs - Diagnostics UI → Diagnostic log: uses
src/HOSASBridge.App/ViewModels/DiagnosticsViewModel.cs - Diagnostics UI → User settings: reads settings
src/HOSASBridge.App/ViewModels/DiagnosticsViewModel.cs - App startup → Diagnostic log: creates
src/HOSASBridge.App/App.xaml.cs