Mirror the gamepad forwarded from the headset to a uinput device with the standard Xbox layout, so applications that do not read it through OpenXR, such as SDL and Steam Input, pick it up. This extends the existing hid-forwarding uinput path, which already covered keyboard and mouse.
The headset chooses which devices to forward (keyboard, mouse, gamepad), off by default. The hid-forwarding server option gates the uinput mirror only; the OpenXR gamepad is always exposed. The mirror needs the uinput module and write access to /dev/uinput.
Gamepad rumble written to the uinput device is read back and forwarded to the headset as OpenXR haptics.
Tagged versions shouls use GIT_TAG instead of GIT_DESC+GIT_COMMIT
When using GIT_TAG, apk download will be done from WiVRn releases
In other cases, GIT_COMMIT will be used to download from WiVRn-APK
releases.
If none is set, git is used to compute the values
The server only exports its D-Bus interface and sets JsonConfiguration
from inside on_name_acquired (server/main.cpp), after owning the
well-known name io.github.wivrn.Server. The dashboard's GetAll
triggered from on_server_dbus_registered can therefore race ahead of
that and come back with an error or an empty reply.
Previously the dashboard set ServerStatus to Started as soon as the
name was owned, so the rest of the UI assumed the server was usable
while JsonConfiguration was still missing. SettingsPage in particular
loaded its values once in Component.onCompleted and ended up showing
defaults (Encoder Auto, SteamVR checkbox unchecked, OpenVR / Autostart
blank), even though the configuration on disk was correct.
Move the Started transition into refresh_server_properties, only after
GetAll returns a reply that actually contains JsonConfiguration. If the
initial reply is errored or empty, retry every 200 ms until the server
has exported its interface. When the dashboard starts and finds the
service already registered, set Status::Starting in the constructor so
Main.qml does not see Stopped and spawn a duplicate process.
With this, ServerStatus::Started now consistently means 'server is
fully usable, properties are populated', and SettingsPage no longer
needs to handle the asynchronous arrival of JsonConfiguration itself.
The close() function requires <unistd.h> to be included. This was
not caught on older toolchains which transitively included it through
other headers, but newer GCC/glibc requires explicit includes.