[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108676":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":30,"discoverSource":31},108676,"OpenDS","Jac0b-Shi\u002FOpenDS","Jac0b-Shi","Lightweight DualSense Bluetooth to virtual USB bridge for Windows",null,"Rust",90,5,52,1,0,2,11,35,7,55.33,"GNU General Public License v3.0",false,"main",true,[],"2026-11-23 06:01:31","2026-11-23 15:27:21","# OpenDS\n\n**English** | [简体中文](README.zh-CN.md)\n\nTurns a Bluetooth DualSense into a local virtual USB DualSense, so games treat it as a wired controller. Lightbar, adaptive triggers, rumble, speaker audio and haptics all come back to the physical pad.\n\n## Quick Start\n\n1. Extract `OpenDS-…-windows-x64.zip` to a local disk and keep every file. For a fixed install, run `scripts\u002FInstall-OpenDS.ps1` in PowerShell.\n2. Pair the DualSense in Windows Bluetooth settings and close any other tool that claims it. If the controller was paired to another device before, put it in pairing mode first:\n\n   > Make sure the player indicator is off — hold the PS button until it goes dark — and unplug any USB cable. Hold the **Create** button and press the **PS** button until the light bar starts blinking. Then pick the controller in Windows Bluetooth settings.\n\n   These steps come from Sony's [official pairing guide](https:\u002F\u002Fwww.playstation.com\u002Fen-hk\u002Fsupport\u002Fhardware\u002Fpair-dualsense-controller-bluetooth\u002F). [Apple's support page](https:\u002F\u002Fsupport.apple.com\u002Fen-euro\u002FHT211813) shows where the Create button sits; the button combination is the same.\n3. Double-click `opends.exe`. If drivers are missing, follow the prompt to install USB\u002FIP Win2 and HidHide, then reboot.\n4. Select the controller under **Connection & Feedback**, save, then click **Start Bridge** on the overview.\n5. Launch the game. Start the bridge first — the controller is only seen as a full device if it is present when the game starts.\n\nClosing the settings window keeps OpenDS in the tray. Stopping the bridge or exiting from the tray releases keys, removes the virtual device and makes the controller visible again.\n\n## Input history and overlay\n\nStart collection in **Live monitor** to record button, stick-direction and strength changes below the controller. Right-stick recording is off by default; turn it on in **Input history settings**, where source labels (text, icon or hidden), thresholds and colors are also configurable. Source labels are hidden by default. Content size supports 50% to 500%, scaling text, icons and row heights together. Narrow windows place the duration below the combination. Touchpad contact and motion are excluded; its physical click is recorded.\n\nThe current input state stays pinned at the top with a live duration, and each older row shows how long that state lasted. Times display `99+ s` past 99 seconds. Disconnect and reconnect appear as plug events.\n\nLS, RS, L2 and R2 each offer Distinguish strength (on by default). Turning it off records activation, release and stick direction changes without strength transitions, in both the table and command CSV. Tier controls are disabled while dead zones remain editable. Each ungraded color is independent and initially matches the full-strength color. Trigger dead zones use raw values 0–255, defaulting to 0; values at or below the dead zone are released. Other thresholds remain raw values. CSV strength fields use 0 for released, 1–3 for tiers and 4 for ungraded active input; raw input values are retained.\n\nSeparators between complete records support light\u002Fdark colors, opacity and flat, fading or tapered ends. The overlay fits complete records to its window height by default; turn off automatic rows to set a fixed count.\n\nOpen **Overlay** for an independent table with optional always-on-top, adjustable size, separate background and content opacity, and light\u002Fdark themes. Locking enables mouse passthrough; unlock from the panel, the tray menu, or **Restore overlay**. With automatic colors off, light and dark palettes can be set separately.\n\n**Record file** also writes a matching `.commands.csv` with each input and connection event, the classification settings and the raw timestamp.\n\nInput history has independent minimum-duration filters: display defaults to 16.67 ms, while the command file defaults to 0 ms (off). Both values are configurable; 0 disables filtering. A state appears or is written after reaching the threshold, retaining its original start time. Short excursions between identical combinations merge into one duration. Filtering applies per state, so two consecutive different states that both fall below the threshold are dropped rather than summed. Connection, disconnection and gap events always pass. Waveform recording is unaffected.\n\nTimes are based on received input, rather than game frame counts.\n\n## Commands\n\nThe GUI covers everyday use. The commands are for scripting, batch changes, and letting an AI agent inspect or configure the bridge — `doctor`, `list` and `startup status` all print plain text that can be fed to a model directly.\n\n```powershell\n.\\opends.exe              # open the settings window\n.\\opends.exe tray         # background mode, tray icon only\n.\\opends.exe bridge       # bridge directly, Ctrl+C to stop\n.\\opends.exe bridge 30    # bridge for 30 seconds\n.\\opends.exe list         # list paired Bluetooth controllers\n.\\opends.exe doctor       # check dependencies\n.\\opends.exe restore      # restore a hidden controller\n```\n\n## Dependencies\n\nStarting with 0.3.2, Diagnostics lets you select installation directories for USB\u002FIP Win2 and HidHide. Selections are saved and checked immediately; Auto clears a manual selection. USB\u002FIP requires `usbip.exe`. The HidHide directory locates its optional configuration client and does not install the driver. Stop bridging before changing directories.\n\n| Component | Purpose |\n| --- | --- |\n| USB\u002FIP Win2 | creates the virtual USB device |\n| HidHide | hides the physical controller so games see one device |\n\n`scripts\u002FInstall-Drivers.ps1` pulls both installers from their upstream GitHub releases and verifies the SHA-256 and publisher signature before running them:\n\n| Driver | Upstream repository |\n| --- | --- |\n| USB\u002FIP Win2 | [vadimgrn\u002Fusbip-win2](https:\u002F\u002Fgithub.com\u002Fvadimgrn\u002Fusbip-win2) |\n| HidHide | [nefarius\u002FHidHide](https:\u002F\u002Fgithub.com\u002Fnefarius\u002FHidHide) |\n\nFile names, URLs and digests are listed in `scripts\u002Fdrivers.json`.\n\n```powershell\n.\\scripts\\Install-Drivers.ps1                          # download\n.\\scripts\\Install-Drivers.ps1 -Install                 # download and install\n.\\scripts\\Install-Drivers.ps1 -Proxy http:\u002F\u002F127.0.0.1:7890\n.\\scripts\\Install-Drivers.ps1 -ManualDirectory D:\\Downloads -Install\n```\n\nRelease archives already include libVIIPER and Opus.\n\n## Configuration\n\nSettings default to `%LOCALAPPDATA%\\OpenDS\\opends.ini`. An `opends.ini` next to the executable takes precedence, which gives you portable mode.\n\n```ini\n[ds5]\nport=3240\nbuffer=64\naudio=1\nhaptics_gain=10\n```\n\n| Key | Meaning |\n| --- | --- |\n| `port` | virtual device port |\n| `buffer` | audio buffer blocks, 16–128. About 10.7 ms each: 64 blocks ≈ 683 ms, 128 ≈ 1.37 s when full. Larger survives stalls, at the cost of sound lagging the picture |\n| `audio` | speaker audio toggle |\n| `haptics_gain` | haptic intensity, 10–20 |\n| `microphone_gain_db` | microphone gain, 0–50 dB, peak-limited |\n| `microphone_buffer_ms` | microphone jitter buffer, 16–512 ms |\n| `monitor_sample_hz` | monitor sample rate, 20 \u002F 50 \u002F 100 \u002F 200 |\n| `monitor_fps` | monitor refresh rate, 15 \u002F 30 \u002F 60 |\n| `monitor_seconds` | monitor time span, 30–900 s |\n| `language` | UI language, `auto` follows the system, or a code such as `zh-CN` |\n| `theme` | appearance, `system` \u002F `light` \u002F `dark` |\n| `close_action` | what closing the window does, `ask` \u002F `tray` \u002F `exit` |\n\nRestart the bridge after changing anything.\n\n## Start at Login\n\nOpen **General settings** and tick **Run in tray when Windows starts**. You can also set it during installation:\n\n```powershell\n.\\scripts\\Install-OpenDS.ps1 -Startup\n```\n\nFor scripting:\n\n```powershell\n.\\opends.exe startup enable\n.\\opends.exe startup status\n.\\opends.exe startup disable\n```\n\nStartup uses the current user's Run key and needs no administrator rights.\n\n## Troubleshooting\n\n**The controller is missing from Device Manager**\n\nHidHide is hiding it. Exiting OpenDS restores it; after a crash, run `opends.exe restore`.\n\n**No rumble in game**\n\nStart OpenDS before launching the game. Games usually probe the controller type and its capabilities at startup. A controller connected later is still recognized as an input device, but the capability probe does not run again — rumble, adaptive triggers and lighting may stay inactive.\n\n**Rumble but no sound**\n\nThe controller speaker has its own volume, set by the game through the output report. Without a game-side option it keeps its previous level. Make sure `audio=1`.\n\n**Audio stutters**\n\nRaise `buffer`, for example to 96 or 128.\n\n**Steam games misbehave**\n\nDisable Steam Input. It takes over the controller and bypasses the virtual device.\n\n**The magnifier or on-screen keyboard opens by itself**\n\nSteam's guide chords turn PS button combinations into system shortcuts — magnifier, on-screen keyboard, screen recording. Turn it off in Steam: Settings → Controller → Advanced Settings → clear \"Enable controller guide chords\".\n\nIf it only happens occasionally, you can also disable the individual Windows accessibility shortcuts.\n\n**How do I troubleshoot a connection problem?**\n\nLogs are in `%LOCALAPPDATA%\\OpenDS\\logs\\opends.log`, shared by startup and manual launches. They record connections, disconnects, bridge errors and audio statistics. Each file is capped at 1 MiB, with `opends.log.1` and `opends.log.2` kept as history. Every line starts with a Unix timestamp in seconds.\n\n## Compatibility\n\nSupports DualSense and DualSense Edge. Edge uses the Edge PID by default; set `edge_as_ds=true` to present it as a standard DualSense. One controller at a time.\n\nThe microphone is experimental and off by default, with adjustable gain and jitter buffering — see [Microphone](docs\u002Fguides\u002Fmicrophone.md).\n\nThe **Live monitor** page shows controller input alongside speaker, haptic and microphone waveforms — see [Live monitor](docs\u002Fguides\u002Fmonitor.md).\n\n## Build\n\nRequires the Rust MSVC toolchain, the Windows SDK and Git.\n\n```powershell\ncargo fetch --locked\ncargo test --locked --offline\n.\\scripts\\Build-Release.ps1\n```\n\nThe optional `bundled-opus` feature compiles a static Opus with CMake; CMake 4 needs `$env:CMAKE_POLICY_VERSION_MINIMUM='3.5'`.\n\nRebuilding the DLL after changing `vendor\u002Fviiper-source` needs Go 1.27.3 and a Windows C compiler:\n\n```powershell\n.\\scripts\\Build-VIIPER.ps1 -Compiler \u003Cpath-to-gcc.exe>\n```\n\n## Release Assets\n\nEach version ships four files:\n\n| File | Contents |\n| --- | --- |\n| `OpenDS-\u003Cversion>-windows-x64.zip` | executables, DLLs and scripts |\n| `OpenDS-\u003Cversion>-source.zip` | full source: Rust code, `vendor\u002Fviiper-source`, dependency licence notices |\n| `SHA256SUMS.txt` | checksums for every asset |\n| `TAG-SIGNATURE.json` | receipt for the signed tag |\n\nThe \"Source code (zip)\" and \"Source code (tar.gz)\" links on the GitHub page are generated by the platform and only contain Git-tracked files; dependency licence notices and the VIIPER source archive are missing from them. **Download `source.zip` when you need the source.**\n\nThe release pipeline checks that the VIIPER source in `source.zip` matches the DLL shipped in the binary archive.\n\n## License\n\nGPL-3.0-or-later. Full text in [LICENSE](LICENSE); third-party components in [THIRD-PARTY.md](THIRD-PARTY.md).\n\nWhen distributing binaries, include `vendor\u002Fviiper-source`; the release script packages it automatically.\n\n## Documentation\n\n- [User guide](docs\u002Fguides\u002Fuser-guide.md)\n- [Live monitor](docs\u002Fguides\u002Fmonitor.md)\n- [General settings](docs\u002Fguides\u002Fsettings.md)\n- [Microphone](docs\u002Fguides\u002Fmicrophone.md)\n- [Developer guide](docs\u002Fguides\u002Fdeveloper-guide.md)\n- [Protocol notes](docs\u002Fguides\u002Fprotocol.md)\n- [Resident mode](docs\u002Fguides\u002Fresident.md)\n- [Changelog](CHANGELOG.md)\n\n## Acknowledgements\n\n**Runtime dependencies**\n\n| Project | Role |\n| --- | --- |\n| [VIIPER](https:\u002F\u002Fgithub.com\u002FDualSenseClient\u002FVIIPER) | virtual USB DualSense device (GPL-3.0-or-later) |\n| [USB\u002FIP Win2](https:\u002F\u002Fgithub.com\u002Fvadimgrn\u002Fusbip-win2) | creates the virtual USB device |\n| [HidHide](https:\u002F\u002Fgithub.com\u002Fnefarius\u002FHidHide) | hides the physical controller |\n| [Opus](https:\u002F\u002Fopus-codec.org\u002F) | audio codec (BSD-3-Clause) |\n| [native-windows-gui](https:\u002F\u002Fgithub.com\u002Fgabdube\u002Fnative-windows-gui) | settings UI (MIT) |\n\n**Design references**\n\n- [input-overlay](https:\u002F\u002Fgithub.com\u002Funivrsal\u002Finput-overlay): DualSense layout reference; the presets are CC0\n- [3d-controller-overlay](https:\u002F\u002Fgithub.com\u002Flarfingshnew\u002F3d-controller-overlay): visual reference for the three-dimensional handset (MIT)\n\n**Ideas**\n\n- [zhonghuihong](https:\u002F\u002Fspace.bilibili.com\u002F37635277) on Bilibili: his documentation clarified how the DualSense behaves on PC and how to approach debugging it. That software is closed source; no code from it is used here.\n\n## Legal Notice\n\nDualSense and PlayStation are registered trademarks of Sony Interactive Entertainment Inc. (SIE).\n\nThis is an unofficial third-party project. It is not affiliated with, authorized, sponsored, or endorsed by SIE. Other trademarks are the property of their respective owners.\n","OpenDS 是一个轻量级的蓝牙 DualSense 手柄虚拟 USB 桥接工具，专为 Windows 设计，可将无线连接的 DualSense 伪装为有线 USB 设备供游戏识别。它完整还原 Lightbar、自适应扳机、震动、扬声器音频与触觉反馈等原生功能，不依赖索尼官方驱动或 DS4Windows 等第三方模拟方案。基于 Rust 开发，采用 USB\u002FIP Win2 与 HidHide 驱动实现底层设备重映射，支持实时输入监控与 CSV 记录。适用于追求低延迟、完整硬件特性支持的 PC 游戏玩家，尤其适合需兼容 Steam、Epic 或仅识别有线手柄的游戏环境。","2026-11-24 04:34:56","CREATED_QUERY"]