Rubylight Download 7.0.3
On this page
  1. Composite DualSense haptics
  2. Dolby Vision RPUs from dovi_tool
  3. mac-precision-touchpad
  4. PlayStation controller speaker
  5. Nightjar desktop's Fullscreen mode rule from SDL
  6. Nightjar's connectivity test and stage names from moonlight-common-c
  7. Nightjar gyroscope mapping from jvanderv42's fork
  8. Nightjar's controller button hints from Moonlight V+ PC
  9. Nightjar's MediaTek decoder keys from Artemis and the derflacco fork
  10. Neural Rendering: ANR frame generation and the earlier AMDNR
  11. PyroWave patches from Punktfunk
  12. Rubylight virtual display driver
  13. SADIE II HRTF data
  14. ViGEmClient

Third-party code #

Rubylight is GPL-3.0-only. Its administration console is a Svelte application served by the Rust host; the bundle includes the Svelte runtime (MIT License, Svelte Contributors), and the console's npm dependencies and their versions are recorded in rust/web/package-lock.json. Rust package names, versions, license declarations and repositories are recorded in the packaged rust-dependencies.json; exact versions and registry checksums are in Cargo.lock. The exception is rusty_enet 0.4.0 (ENet 1.3.18, MIT), vendored with changes in client/protocol/vendor/rusty_enet (listed in its Cargo.toml, notice in NOTICE), which has no registry checksum there. Source is available in the corresponding repository checkout.

Clipboard images are decoded and encoded with the png crate 0.18 (MIT OR Apache-2.0, image-rs contributors, https://github.com/image-rs/image-png) and the DEFLATE crates it brings: fdeflate (MIT OR Apache-2.0), miniz_oxide (MIT OR Zlib OR Apache-2.0), adler2 (0BSD OR MIT OR Apache-2.0) and simd-adler32 (MIT). It was chosen over the image crate, which would add decoders the host never uses; it is pure Rust and fuzzed upstream, and butterpollo-core's clipboard_image bounds every image's dimensions and pixel count before it allocates them.

The negotiated HEVC intra-refresh policy follows Eftimin70's Xbox workaround and the verified finite-GOP/CTB-row configuration in Nonary/vibeshine commit 5671498. Rubylight's Rust implementation adds paired-setting verification and restores its previous policy when the driver rejects the workaround. Startup and recovery keyframe requests remain enabled. This adaptation remains under GPL-3.0-only.

Per-app stream-menu commands (rust/core/input-policy/src/menu_commands.rs, the app key menu-cmd) follow AlkaidLab/foundation-sunshine's menu commands (src/process.cpp, src/nvhttp/apps.cpp, GPL-3.0, the Foundation Sunshine authors); the undo that runs when the app closes is Rubylight's. Settings backup and restore (rust/core/session/src/settings_backup.rs, rust/host/stream/src/settings_backup.rs, the tray's Back up settings and Restore settings...) follow its tray export, import and restore (v2025.1011.143611, pull request 248, GPL-3.0); the archive format, its checks and the staged restore are Rubylight's.

Forcing NVIDIA's global Vertical sync on while a stream shows the virtual display (nvidia_virtual_display_vsync, rust/host/stream/src/radeon_session/release.rs) follows AlkaidLab/foundation-sunshine PR #1155, commit 04d9188, its nvenc_vdd_force_vsync (GPL-3.0, the Foundation Sunshine authors); it runs on Rubylight's own driver-settings journal and restore.

The statistical video FEC (rust/core/media-policy/src/statistical_fec.rs) is ported from AlkaidLab/foundation-sunshine commit 880f1ef, src/streaming/fec.cpp and docs/dynamic-fec.zh-CN.md; the encoder/FEC budget split in Session::encoder_bitrate follows its src/video.cpp. Both are GPL-3.0 and remain so here. Its native YUV 4:4:4 path for NVENC (commit 79423092eda6ccd011e58d04236c8f16e02765c5, src/nvenc/common_impl/ and the convert_yuv444_* shaders) was compared with LizardByte Sunshine's, where that path originates and from which Rubylight's is ported (next paragraph).

The dscp_tagging switch (rust/core/media-policy/src/stream_policy.rs, default on) follows LizardByte/Sunshine#6067 (GPL-3.0, LizardByte and the Sunshine contributors).

HDR desktops streamed as SDR use ITU-R BT.2446-1 Method B: method_b and limit_sdr_gamut in rust/windows/abi/src/shaders/color.hlsl, with the CPU reference and test points in rust/windows/graphics/src/color.rs, are ported from MethodBScRgbToSdr, LimitSdrGamut and test_hdr_encoding.cpp of AlkaidLab/foundation-sunshine PR #1387, commit 9d761ba. GPL-3.0, Copyright (c) Foundation Sunshine authors.

The AMF video converter option (amd_vpe: rust/core/media-policy/src/amf_vpe.rs, rust/windows/graphics/src/amf/vpe.rs) and its scene-linear HLG prepass (hlg_scene_cs in rust/windows/abi/src/shaders/color.hlsl, rust/windows/graphics/src/gpu_color/hlg_scene.rs) are ported from Foundation Sunshine's amd_vpe (src/amf/amf_vpe_d3d11.cpp, prepare_hlg_scene_cs.hlsl; AlkaidLab/foundation-sunshine PR #1216, commit 1add1ed). AMD Direct Capture (capture = amd, rust/windows/graphics/src/capture/amd_direct.rs) follows its src/platform/windows/display_amd.cpp with the AFMF capture fixes of commits 02d41dc (#151) and 804ad30 (#175). GPL-3.0, Copyright (c) Foundation Sunshine authors. The vendored AMF headers VideoConverter.h and DisplayCapture.h are AMD's (MIT), from the same AMF release as the others in rust/windows/abi/include/AMF.

The NVIDIA encoder's native YUV 4:4:4 path is ported from LizardByte/Sunshine commit ec2676b60bb8220a1807fc761bc2157e5e6dba63 (GPL-3.0, LizardByte and the Sunshine contributors): the input formats, 8-bit AYUV through an R8G8B8A8_UINT view and 10-bit as three R16_UINT planes stacked in one texture and copied through CUDA (src/nvenc/nvenc_utils.cpp, nvenc_d3d11_native.cpp, nvenc_d3d11_on_cuda.cpp, src/platform/windows/display_vram.cpp; here rust/core/media-policy/src/nvenc.rs and rust/windows/graphics/src/gpu_color.rs), the conversion shaders' output layout (include/convert_yuv444_ps_base.hlsl, convert_yuv444_planar_vs.hlsl; here the yuv444_* entries of rust/windows/abi/src/shaders/color.hlsl) and the YUV 4:4:4 capability check (validate_encoder_capabilities in src/nvenc/nvenc_base.cpp; here rust/windows/graphics/src/nvenc/config.rs). It remains GPL-3.0 here.

The virtual Switch 2 Pro Controller (rust/core/input-policy/src/switch2.rs) was written on 2026-11-13 from Alia5/VIIPER commit 20aa112 (device/ns2pro, GPL-3.0): its USB descriptors, input report layouts, the bulk commands and their replies and the flash contents follow it. The Moonlight-to-Switch 2 button and motion mapping follows eqnx-emu/Solstice commit c9fdf3bc (GPL-3.0, a Sunshine fork by Luiz Filipe Bandeira and contributors), and the axis scales, stick calibration, initialisation sequence, HD rumble encoding and motion timestamps follow SDL 3's SDL_hidapi_switch2.c at commit fff6448 (libsdl-org/SDL, zlib license, Copyright (C) 1997-2026 Sam Lantinga; no SDL source is copied).

The DSU (cemuhook) motion server (rust/core/input-policy/src/dsu.rs, rust/host/stream/src/dsu.rs) follows the protocol of DS4Windows' DSU server, DS4Control/UdpServer.cs at schmaldeo/DS4Windows commit ecae27a (GPL-3.0, Jays2Kings, Ryochan7, schmaldeo and contributors), including its axis conventions (DS4Sixaxis.cs). Its setting names, default port 26760 and listening on every interface follow AlkaidLab/foundation-sunshine's src/platform/windows/dsu_server.cpp (GPL-3.0).

External SDKs are not a port of the original host:

The standalone C programs under rust/tests are independent interoperability fixtures. Moonlight-common-c, nanors, FFmpeg decoding, OpenSSL and Opus are used by these fixtures and are not compiled as original host implementation code.

Composite DualSense haptics #

The USB/IP audio and haptics implementation was adapted to Rust on 2026-10-13 from Nonary/Vibepollo 8b3ea1c4, under GPL-3.0-or-later (used here under GPLv3). USB descriptors, reports and calibration derive from Nonary/libvirtualgamepad 9edbce11, by Chase Payne, and HIDMaestro's composite profile under the MIT terms below. Its rumble stop on an unflagged zero-motor output report follows Vibepollo 7a5bb9ca (GPL-3.0), ported on 2026-11-09. Windows packages bundle the optional usbip-win2 installer described above, shared by native Steam Deck controllers and composite DualSense haptics.

MIT License

Copyright (c) 2026 Chase Payne Copyright (c) 2026 HIDMaestro Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Dolby Vision RPUs from dovi_tool #

The Dolby Vision profile 8.1 RPU writer in rust/core/media-policy/src/dovi.rs follows the syntax, default values and L1 limits of the dolby_vision crate 3.4.0 of dovi_tool (rpu/rpu_data_header.rs, rpu/rpu_data_mapping.rs, rpu/vdr_dm_data.rs, rpu/profiles/profile81.rs, rpu/extension_metadata/blocks), used here under the MIT License. No dovi_tool code or crate is compiled in.

MIT License

Copyright (c) 2026 quietvoid

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

mac-precision-touchpad #

The virtual precision touchpad (PrecisionTouchpad in rust/core/input-policy/src/virtual_hid/touchpad.rs and PTP_CERTIFICATION_BLOB in rust/core/input-policy/src/virtual_hid/descriptors.rs) follows the report layout and the certification feature report of imbushuo's mac-precision-touchpad SPI driver (AmtPtpDeviceSpiKm/Hid.h), whose SPI part is under the MIT License (the project's USB drivers are GPL-2.0 and nothing is taken from them). The full text is in third-party/licenses/mac-precision-touchpad-LICENSE.txt.

Copyright © 2018 Bingxing Wang

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the “Software”), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be included in all copies
or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

PlayStation controller speaker #

The speaker PCM message 0x5602 and the 20-byte speaker binding (input packet 0x55000009) follow Nonary's wire format and rules in Nonary/moonlight-common-c pull request 2 (src/ControllerSpeakerPcm.h, merge 8101f711) and Nonary/vibeshine pull request 337 (src/controller_speaker_pcm.h and docs/controller_speaker_pcm.md, merge c90dadd2), both GPL-3.0-or-later; client/protocol/core/src/ps_speaker_pcm.rs, rust/core/input-policy/src/ps_speaker.rs and client/protocol/client/src/control/ps_speaker.rs are Rubylight's own Rust implementation of it. Nightjar desktop's DualSense speaker over Bluetooth (client/protocol/desktop-media/src/dualsense_bt_audio.rs: report 0x36's layout, the 512-to-480 frame resampling and the Opus settings) is ported from Nonary's moonlight-qt fork by Chase Payne, app/streaming/input/dualsensebtaudio.h at commit b72d0c2 (GPL-3.0-or-later, used here under GPL-3.0), whose protocol research is mrFunkill's decky-dualsense-wired. Its checksum is the standard CRC-32, written independently. The licence text is the repository's LICENSE.

Nightjar desktop's Fullscreen mode rule from SDL #

The desktop Settings screen predicts the display mode Windows' Fullscreen takes by SDL 3's SDL_GetClosestFullscreenDisplayMode (src/video/SDL_video.c, SDL 3.4.20, libsdl-org/SDL, zlib license, Copyright (C) 1997-2026 Sam Lantinga): closest_fullscreen_mode in client/protocol/desktop-ui/src/ui/settings/choices.rs follows its loop over the display's modes. The zlib notice is quoted with the port in that file and kept in third-party/licenses/SDL-LICENSE.txt.

Nightjar's connectivity test and stage names from moonlight-common-c #

Nightjar's client connectivity test (client/protocol/client/src/connectivity.rs) and its connection stage names and port flags (client/app/src/main/java/com/limelight/nvstream/jni/PortFlags.java) are ported from moonlight-common-c (LiTestClientConnectivity, LiGetStageName, LiGetPortFlagsFromStage, LiGetPortFlagsFromTerminationErrorCode, LiStringifyPortFlags) and shown as in Moonlight Android, both GPL-3.0 by Cameron Gutman and contributors. The Android app no longer carries the C library; the licence is GPL-3.0, as Rubylight's own (LICENSE).

Nightjar gyroscope mapping from jvanderv42's fork #

Nightjar's per-controller gyroscope mapping (axis choice, inversion and sensitivity, the Flydigi Apex 4 and Vader 4 Pro preset) and its in-stream motion readings are ported from jvanderv42's Nightjar fork at commit d0e14cf25 (GPL-3.0): client/app/src/main/java/com/limelight/binding/input/GyroAxisTransformer.java, GyroMappingPreferences.java, GyroDiagnosticOverlay.java and client/app/src/main/java/com/limelight/preferences/GyroProfileEditor.java. The desktop client's gyroscope axes and sensitivity (client/protocol/desktop-media/src/gamepad.rs) follow the same design. It remains under GPL-3.0.

Nightjar's controller button hints from Moonlight V+ PC #

Nightjar's button hints follow the connected controller: Xbox letters, PlayStation symbols or Switch labels. The styles and their labels are ported from Moonlight V+ PC (GPL-3.0, qiin2333 and contributors; app/streaming/input/gamepadglyphs.h and SdlGamepadKeyNavigation::detectUiStyle): client/protocol/policy/src/input_glyphs.rs, shared by both apps (Android through client/protocol/android/src/policy_ui_70.rs and client/app/src/main/java/com/limelight/ui/InputSource.java), and the desktop's drawing in client/protocol/desktop-ui/src/glyphs.rs. It remains under GPL-3.0.

Nightjar's MediaTek decoder keys from Artemis and the derflacco fork #

Nightjar's decoder low-latency setup and vendor key tables (client/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java and VendorLowLatencyKeys.java) follow Artemis (GPL-3.0, ClassicOldSong and contributors; the MediaTek flags are alonsojr1980's commits b84a9ec1 and f836c8d6) and derflacco's fork of it (GPL-3.0), whose "Artemide" releases are built from its branch Artemide_Experimental_Async: the MediaTek preset set by decoder name, the operating rate without the real-time priority, and the Tegra keys. The MediaTek key list of Nightjar's preset is that of the branch's first configure try at its commit 32e38f0e (its 359f83c3 removed the four skip and drop keys; its 8dc03f3f had put one preset at boost and clock level 1 in place of a stronger and a milder one; the pq key never existed on that branch), with boost and clock level 1, without the ultra-low-latency key (the fork keeps it behind a setting) and the real-time priority, and with Nightjar's own low-latency.mode.value. The license text is the repository's LICENSE. It remains under GPL-3.0. Nightjar's TV display compatibility dot (client/app/src/main/java/com/limelight/ui/CompositorHeartbeat.java and its test CompositorHeartbeatTest.java) is ported from the fork's app/src/main/java/com/limelight/ui/CompositorHeartbeat.java and its test, branch Artemide_Experimental_Async, commit 784b4eca, under the same license.

Neural Rendering: ANR frame generation and the earlier AMDNR #

Neural Rendering's per-app frame generation switch (rust/core/session/src/neural.rs, rust/host/stream/src/neural.rs) installs ANR frame generation by apex-compute, release FG-V.B16, whose authors publish no license. Rubylight does not host, bundle, mirror or modify any of its files: at the user's request the host downloads the release's two archives from GitHub, checks them against the pinned SHA-256, GitHub's digests and the release's SHA256SUMS.txt, and copies the files unmodified into the game's folder. The full package carries OptiScaler (GPL-3.0) with its license texts, which are copied with it.

Rubylight 3.0's Neural Rendering installed AMDNR by 3zwr1 (GPL-3.0, an OptiScaler fork) and its lmxxf runtime by Kien (MIT) the same way. ANR frame generation replaced it on 2026-11-14; only the removal of existing installs remains.

PyroWave patches from Punktfunk #

The PyroWave SDK patches 0002-payload-data-444-sizing and 0003-decoder-reject-short-block in rust/codec-patches/pyrowave are adapted from patches 0001 and 0008 of Punktfunk (MIT OR Apache-2.0), used here under the MIT License. They are compiled into the shipped libpyrowave-shared-1.dll.

Rubylight virtual display driver #

rust/drivers/rubylight-vdisplay (the UMDF IddCx driver), rust/drivers/rubylight-vdisplay-proto (its host-driver protocol, used by the host) and the host's idd-push capture are based on punktfunk's pf-vdisplay, wdk-iddcx, pf-umdf-util and pf-driver-proto by Enrico Bühler (unom), punktfunk 0.44.0, commit c5ed113, forked on 2026-10-15 under MIT OR Apache-2.0 and kept under those licenses; the full texts are in rust/drivers/rubylight-vdisplay/LICENSE-MIT and LICENSE-APACHE. Rubylight changed the driver's identity, control protocol and video transport (a host-shared texture ring instead of in-driver encoding), removed its encoder and remote-session adapter, and added opt-in hardware cursor separation over a host-shared snapshot section. punktfunk's INF was itself adapted from MolotovCherry/virtual-display-rs (MIT) and SudoVDA's control-device DACL. The driver workspace vendors microsoft/windows-drivers-rs 0.5.1 (wdk-build, wdk-sys; Copyright (c) Microsoft Corporation, MIT OR Apache-2.0) with punktfunk's added IddCx bindings.

MIT License

Copyright (c) 2026 unom - Enrico Bühler

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

SADIE II HRTF data #

Headphone surround renders with head-related impulse responses derived from the SADIE II database (subject D1, the Neumann KU100 dummy head, 48 kHz), Copyright 2018, University of York, AudioLab, Department of Electronic Engineering, licensed under the Apache License, Version 2.0: Zenodo record 10886409, file D1_HRIR_SOFA.zip. Rubylight changed them: it picked nine horizontal directions, applied diffuse-field equalization, made each filter minimum phase with its measured arrival time, symmetrized the left and right halves, trimmed the common onset and shortened them to 256 taps. rust/tools/hrir/generate.py makes rust/core/media-policy/src/audio_dsp/hrir_sadie2_ku100_48k.bin from the original download and records each step in its .json manifest; the upstream license is also in rust/core/media-policy/src/audio_dsp/LICENSE-SADIE-II.txt.

Citation: C. Armstrong, L. Thresh, D. Murphy and G. Kearney, "A Perceptual Evaluation of Individual and Non-Individual HRTFs: A Case Study of the SADIE II Database", Applied Sciences 8(11):2029, 2018, https://doi.org/10.3390/app8112029.


                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

ViGEmClient #

rust/windows/io/src/input/vigem.rs ports the DeviceIoControl protocol and target lifecycle from ViGEmClient: src/ViGEmClient.cpp, include/ViGEm/Common.h and include/ViGEm/km/BusShared.h. It uses Windows APIs directly and does not link the C client. Controller mappings (rust/windows/io/src/input/vigem/ds4.rs) follow Vibepollo's Windows input code, under GPL-3.0: the DualShock 4 report with its touchpad, motion (with the inverse of ViGEmBus's calibration), battery, keepalive and lightbar is ported from commit 5e6ed8594184212d429bb093d7fd47904c9a6fa6, which carries LizardByte Sunshine's DualShock 4 emulation (GPL-3.0). ViGEmBus itself is an optional, separately installed driver.

MIT License

Copyright (c) 2018 Benjamin Höglinger-Stelzer Copyright (c) 2016-2019 Nefarius Software Solutions e.U. and Contributors Copyright (c) 2017-2023 Nefarius Software Solutions e.U. and Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View this page on GitHub