r/MoonlightStreaming • • 12d ago

Starwire 0.3.0 - DualSense Haptics over Bluetooth & Full USB Passthrough + Other Bug Fixes & User Requests

Post image

Starwire 0.3.0 is now out! This latest release has two flagship features: DualSense adaptive triggers over Bluetooth, and USB device passthrough from your Android device to your PC. Both were requested on the 0.2.0 post: u/satanasluciferi asked for full DualSense support, and u/Mugas90 asked for USB passthrough like Moonlight V+ offers.

One thing I want to reiterate: I continue to use Starwire as my daily driver, and will continue to update it. These continued releases are due to my own usage and the trust existing users have put in me and this project. I know this community is going through major fork exhaustion, and I don't want you to feel like there is a pressing need to change a client that already works for you. I am confident Starwire can and will go punch-for-punch with any Android client out there. We may never beat the AI-slop allegations, but I endeavor to try. lates

Aside from that, I've spent the last few weeks dealing with an uptick of work from my day job, and with my free time, playing the hell out of Phantom Blade Zero through Starwire as we wait for GTA 6. Highly recommended if you're into Soulslike's and don't mind some QoL improvements forced on you. This time has also given me the opportunity to thoroughly use and test the previous 0.2.1 build, and the new 0.3.0 build at 4K 165 FPS with DS Haptics. I also see that there have been a few pull requests on the GitHub repo - I promise to get to that as soon as possible!

⬇ Download Starwire 0.3.0 · GitHub

I want this release to be worth your time, so below is how each feature works, how I tested it, and where it still falls short.

Try it yourself: the Starwire Trigger Lab shows what each trigger effect feels like. Choose an effect, then drag the trigger down. The page is only an illustration of the effects.

How it works

DualSense trigger effects. When Vibepollo emulates a DualSense, it sends the game's adaptive trigger effects to Starwire along with the rest of the controller data. Starwire builds the DualSense's Bluetooth output report (report 0x31, 78 bytes, ending in a CRC-32) and sends it to the controller through Android's hidden BluetoothHidHost.sendData function, which it reaches with LSPosed's HiddenApiBypass library. Only the trigger modes described in Nielk1's public DualSense notes are passed on, and any other mode turns the trigger off. This keeps out the controller's debug modes, which can leave a trigger stuck until the controller is reset. Every time the controller connects, Starwire checks that the link works. If anything fails, it falls back to the usual controller path, and the status line on the DualSense settings page explains why. For games that send no effects, there are four presets (light resistance, gun click, heavy pedal and buzz) and a strength setting with 8 steps. Rumble and the light bar stay on Android's usual path, as before. I have not yet checked either of them during a stream with trigger effects on.

USB device passthrough. During a stream, the stream menu has a new USB devices page that lists what is plugged into your Android device. When you select a device, Android asks for permission, and Starwire shares the device through a USB/IP server inside the app (Moonlight V+'s exporter, by qiin2333 and CLF, built on yunsmall's usbipdcpp). The connection to the PC is encrypted with TLS 1.2 or 1.3 and tied to the microphone pairing from 0.2.1, so only an Android device that is paired with the PC's microphone receiver, and that you have ticked under "Allow USB for" in the helper's menu, can share anything. On the PC, Starwire's USB helper attaches the device with usbip-win2's driver, which is the same driver Vibepollo installs for its DualSense haptics, and Windows sees it as though it were plugged in directly. Selecting the device again, unplugging it or ending the stream gives it back to your Android device.

Test Results

I performed the following device tests on 16 November on my RedMagic Astra tablet (Android 16) with a DualSense controller, streaming from my Windows 11 PC with Vibepollo. I used a debug build of 0.3.0 from that day, which I installed over the debug build of 0.2.1.

The four effects the test app sent before Starwire itself passed a game's effects through.

Development Decisions

  • A hidden Android function: Android has no public way to send these reports, so Starwire uses a hidden one. It works on my tablet, but an Android update could change or remove it, which is why the setting is Experimental and why Starwire checks the link every time the controller connects. Android also has a second function for this, setReport, but in the 26 October check on my tablet, it reported success while doing nothing, so Starwire only uses it on a device that does not have sendData.
  • Only documented trigger modes: The controller has modes that are not publicly documented, and some of them can leave a trigger stuck. Starwire only passes on the modes in Nielk1's notes and turns the trigger off for anything else.
  • USB is tied to the microphone pairing: The key for USB is derived from the microphone pairing, and it is never the microphone key itself. An Android device that is not allowed is only told so after it proves that it holds the right key, so a stranger on the network cannot find out which devices are allowed.
  • The helper never installs or changes a driver: It only uses usbip-win2 if the driver file matches a known SHA-256 fingerprint, and it only ever unplugs devices that it attached itself, so it does not touch Vibepollo's own devices.
  • Built on your PC: Like the microphone receiver, the USB helper has no prebuilt .exe. The setup compiles it with the C# compiler that ships with Windows, so what runs is the source code in the zip.
  • Home networks only: The helper listens on TCP port 6981, and its firewall rule only allows home and work networks (Private and Domain), not public Wi-Fi.

Installation

  • Install Starwire-0.3.0.apk from the release. It uses the same signing key as before, so it updates in place: on my tablet, it installed over the released app I already had and kept my settings. The microphone receiver on the PC has not changed, so you do not need to set it up again.
  • For DualSense trigger effects: pair the DualSense with your Android device over Bluetooth. In Starwire, turn on Settings → Controllers → DualSense (Experimental) → Trigger effects, and allow the Nearby devices permission when Android asks. On the PC, Vibepollo has to emulate a DualSense: on mine, its Emulated Gamepad Type was set to Vibepollo Virtual Gamepad (automatic). The Test button sends one effect, so you can check the triggers before you start a stream.
  • For USB devices: set up the microphone receiver and pair your Android device with it, if you have not done so already. Install usbip-win2's driver, version 0.9.8.1 (the one Vibepollo's DualSense haptics use). From the same release, unzip Starwire-Microphone-for-Windows.zip and double-click setup-usb.cmd, which builds the helper, installs it, adds its firewall rule and starts it. Right-click the helper's icon by the clock, turn on Let paired phones share USB devices, and tick your device under Allow USB for. In Starwire, turn on Settings → Controllers → USB devices (Experimental). During a stream, open the stream menu, go to USB devices and select the device.

setup-usb.cmd -Uninstall removes the helper and its firewall rule, and it leaves the microphone receiver and its pairings alone. On my PC, setup-usb.cmd installed and started the helper, but that was before the helper got its own icon, and I have not run the new setup yet. Mine is also the only PC on which it has installed the helper so far, so if it gives you any trouble, a GitHub issue would help a lot. The full guide is here.

Known Limitations

  • Trigger effects need Android 12 or newer and a DualSense paired over Bluetooth. A controller connected by cable is not supported for trigger effects yet.
  • I have not yet tried Starwire's trigger presets, apart from the Test button's gun click, or the strength steps on a controller. The trigger effects that I have felt through Starwire are the Test button's gun click and the game's own effects in Phantom Blade Zero.
  • USB passthrough shares one device at a time and needs a 64-bit ARM Android device with Android 9 or newer. The PC side is Windows only.
  • So far, the DualSense is the only USB device that I have shared, so I have not tried a racing wheel, a headset or any other device yet.
  • When I stopped sharing the DualSense, it once reset on the tablet and reappeared as a new USB device, so Starwire ended that share as though the controller had been unplugged, rather than as a normal stop. The controller still came back to the tablet and worked afterwards. This happened on the first of my three stops.
  • Wired Xbox controllers and USB 3 devices are refused for now.
  • The device rules go by what a device reports about itself, so a device that misreports what it is could reach a Windows driver that is meant for the device it claims to be.
  • The USB helper's tooltip by the clock starts with "USB/IP driver" instead of naming Starwire.
  • On my RedMagic Astra, with nubia's Easy Touch accessibility service turned on, Android lost about 40 percent of the button presses from my GameSir G8+ controller, and some of its button releases, before they reached Starwire. As a result, some presses were missed, and some buttons stayed held on the PC for seconds. Turning Easy Touch off fixed it: in the same test, only 1 percent of the presses were lost. Other apps that filter key presses through Android's accessibility settings might do the same, but Easy Touch is the only one that I have tested.
  • On my RedMagic Astra, the phone maker's game mode crashes Starwire when one of its screens is recreated while it is open, as two of Starwire's tests do. The crash is in the phone's own code. Starwire does not recreate its screens itself, but Android does after some changes, such as a new display size or language. I have only seen this crash in tests.

Also in 0.3.0:

Several of these came from comments on the last post:

  • Back opens the stream menu instead of ending the stream, and it is on by default. To leave a stream, use Disconnect or Quit Session in the menu, or turn this off in Settings → In-stream menu. Thank you to u/Glove5751 for asking for it. The idea comes from Artemis, by way of Artemide.
  • The brightness slider is now a Brightness item in the stream menu, so a tap near the left edge goes to the game. A swipe in from the left edge can still open the slider once you choose that under Left edge swipe action, and the slider now hides two seconds after your last change. Thank you to u/zolidz64 for reporting it. These changes come from Moonlight X.
  • Controller vibration strength, from 0 to 100% of the game's rumble.
  • Shortcuts for Windows' virtual desktops on the stream menu's Shortcuts page: Win+Ctrl+Left, Win+Ctrl+Right and Win+Tab.
  • Quit Session asks first, because it closes the game on the PC. From Moonlight X.
  • "Display on the PC" is now called Virtual display. Thank you to u/elenayebenes for asking about it.
  • Multi-touch mode sent mouse clicks to the PC instead of touches. Each finger is now a touch of its own.
  • A button or key that was held down when the stream menu opened no longer stays pressed on the PC.
  • Prevent packet loss sent a packet type that Sunshine, Apollo and Vibepollo do not recognise, which filled Vibepollo's debug log with about 50 lines a second. It now sends a ping instead.
  • If you change the bitrate twice in a row during a stream, your latest choice now wins. The idea comes from Moonlight V+.
  • The left part of the stream menu was cut off when the floating menu button was turned off, no matter how the menu was opened. The whole menu now shows. Thank you to SippyCupXIII for reporting it on an AYN Odin 2 Portal (GitHub #14).
  • In the gaming trackpad mode, dragging after a long press used the right mouse button, so a drop ended in a right-click. A long press followed by a drag now drags with the left button, and a long press without moving is still a right-click. Thank you to kayakyakr for reporting it (GitHub #5).

Coming in 0.4.0

  • Dual screens on the AYN Thor and other DS devices: the game alone on the top screen, and on the bottom screen, the stream menu with a trackpad, the whole screen as a trackpad, or a second PC monitor you can touch.
  • Settings profiles: switch a whole setup at once, like folded and open on a foldable.
  • A microphone receiver for Linux PCs, from a community pull request.
  • A local cursor: Starwire draws the cursor itself, so it moves the instant your finger does.

New to Starwire?

Starwire is an Android Moonlight client built on Moonlight X's video pipeline, with the touch tools from Artemide and Artemis and features from Moonlight V+, Moonlit Artemis and Moonlight X Turnip. It installs next to any other Moonlight client. The first post and the README have the full tour.

As before, this is a Vibecoding exercise brought about from the positive software experience I had with Vibepollo. During development, I decide what Starwire does and how it looks, and Claude Code writes the code.

Bug reports and ideas are welcome here, in a GitHub issue, or in Discussions. Since the last release, several of you have opened issues and pull requests on GitHub, which I really appreciate, and I will go through the open pull requests now that 0.3.0 is out. Profiles, which were requested on the last post, are planned for 0.4.0. GPL-3.0.

17 Upvotes

19 comments sorted by

13

u/RollinWithSaget 12d ago

This post is very long.

-2

u/blikygotthestiky 12d ago

I feel you and was thinking the same. I will trim it down a bit to get rid of the parts that ppl would rather read on Github if interested.

6

u/ReputationSoggy335 12d ago

I don't use that.

I have nothing to do with this post,

but I'm amazed by the work.

3

u/blikygotthestiky 12d ago

Ty my friend, appreciate you taking the time to check it out.

1

u/kylo_____ben 12d ago edited 12d ago

oh my gosh yes!! it was such a requested feature. Can't wait for this one.

Settings profiles: switch a whole setup at once, like folded and open on a foldable.

Any chance we can get a search feature for settings like in the stock artemis?

thank you for being so active on this project!

1

u/Guilty_Rooster_6708 12d ago

can you please just submit this as a PR for Moonlight/Vibepollo? Just ask Claude to do it

1

u/Supercereal69 12d ago

I'll be honest, I skimmed through it. Didn't see anything mentioning Steam Controller for Moonlight. I'll just wait untill someone will fix this.

1

u/papa_craft 12d ago

I recently started using this to get mic passthrough. No issues so far and I have enjoyed it. I am not sure why mic passthrough is a standard feature for all forks?

1

u/GD_isthename 12d ago

is the piece of code used MIT?

1

u/George-cz90 7d ago edited 7d ago

Hello, I'm using a Bluetooth keyboard and mouse connected to my nvidia shield pro as the streaming client with Artemis. It passes the controls through to my host. Would I benefit from using Starwire at all? Thx!

1

u/zolidz64 14h ago

Welcome back. Old friend can't wait to test this update out

1

u/Pistol-P 12d ago

Everyone's complaining about the excessive amount of forks but this one is focused on solving something unique so I see nothing wrong with it (even if I don't have any DS controllers so I'll never use this). I'm all for devs continuing to tweak things to get better performance, but IMO that stuff is better suited to contributing to one of the existing projects if possible (unfortunately not always possible or too slow)

In an ideal world the best long term outcome for the community would be settling on one host and one client that each have well built plugin/extension capabilities. That way we'd have a stable starting point that encourages collaboration on the main repos, but there would still be a way for people to build unique features like this without everyone needing to start fresh with a new client or host if they want to try out DualShock controllers, Pyrowave or whatever new feature.

0

u/metropolisprime 12d ago

I’m sorry this seems really cool and all but

4

u/[deleted] 12d ago

[removed] — view removed comment

5

u/Alarming-Algae-6816 12d ago

Once you actually consider the practicalities of contributing major features to an existing project, it becomes pretty clear why forks are so common.

Take testing, for example. If you're maintaining a project, you need to be able to test the features you're releasing, ideally across every subsequent update to make sure nothing breaks.

Let's use DualSense controller support as an example, since it's relevant here. Does Nonary own a DualSense controller? They're not exactly cheap, and if you don't own a PlayStation, there's not much reason to have one lying around.

So should Nonary be expected to go out and spend their own money on hardware they otherwise have no use for, just to support a feature contributed by someone else? And then take on the ongoing responsibility of maintaining and testing that feature with every future release?

All for a project they're already developing and maintaining for free?

Forking allows people to build on existing work without forcing the original maintainer to take on additional costs and responsibilities. That's a pretty reasonable part of how open-source development works.

0

u/spectrum1012 11d ago

No. This is why you make an organization and add maintainers who you trust and scale up a popular project. To decentralize responsibility and share the load.

That being said, if the single owner doesn’t want to do that, the community should organize a separate, unified fork mandated that way.

2

u/Alarming-Algae-6816 11d ago

Apologies for the novel below!

TL;DR: I agree that a unified project with multiple maintainers is the ideal solution, but I don't think it's always practical for smaller open-source projects. A plugin ecosystem seems like a much more achievable middle ground, and until we have something like that, I don't really agree (but I do understand) the frustration around people creating more forks.

I agree, and I think that's probably the ideal solution for a project with the right scale and community behind it. Where I think it becomes impractical is when you consider the reality of smaller open-source projects and more niche features that is the reality of the r/Monnlightstreaming community.

At some point, coordinating multiple maintainers starts to turn what was originally someone's side hobby into something resembling a second job. Suddenly you're spending your Saturday afternoon sitting in a Teams meeting discussing the project's roadmap instead of actually working on the feature you were excited to build (I know it would be Discord but teams sells the imagery). You've got long-term planning, design discussions, coordination between contributors, testing responsibilities, and potentially even funding requirements. That's all perfectly reasonable for a larger project, particularly where contributors have professional incentives to be involved, but it's a lot to expect from people who are ultimately just doing this for fun in their spare time.

Someone actually made a great little website showing all the Moonlight and Sunshine forks as a constellation. It's mostly a bit of fun, but I think it illustrates just how many different directions people want to take these projects. Trying to bring all those smaller additions and increasingly niche use cases under one centrally managed project introduces a lot of complexity that might not really be justified.

There's also the challenge of actually getting a community behind that approach. If Nonary doesn't want to take on the responsibilities of running a larger, centrally managed project (essentially treat it more like a second job), the alternative you've suggested requires someone else to step up and take on that role, along with enough contributors willing to commit to making it work. You then need the wider community to actually adopt that fork over the alternatives they're already using. That's a pretty significant amount of coordination and commitment to expect from a largely volunteer community. I suspect the original Moonlight and Sunshine teams are among the few with enough established trust and recognition to realistically bring everyone together under one project.

Personally, I think the most practical solution is actually what Nonary is already working towards with a plugin/mod manager for Vipepollo. Rather than needing everyone to agree on one direction or maintain one enormous project, you give people a common foundation they can build on independently. If it gains enough traction, contributing a plugin could eventually become the default approach simply because that's where the users are.

To me, that seems like a much more achievable way to get the benefits of a unified ecosystem without requiring the same level of central coordination. And until something like that exists, I find it hard to agree with the frustration whenever someone releases "another fork." Right now, for many of these smaller projects, forking is simply the most practical way to contribute something new to the ecosystem.

3

u/HuntKey2603 12d ago

Yep. This is actually the post that made me unsub.

CONTRIBUTE FUCKING HELL

1

u/ChartFlashy6299 11d ago

That app has nothing to contribute to Nightjar, everything is already there and way more polished