HIDrogen
A package for the new Unity input system that provides additional backends to fill platform-specific holes
Install / Use
/learn @TheNathannator/HIDrogenREADME
HIDrogen
An add-on for the Unity InputSystem package that provides additional input backends, including proper HID support on Linux, and raw Xbox One controller support via GameInput on Windows.
Refer to the inner package README for more details.
(pronounced "hydrogen" or "hid-rogen")
Installing
Below are instructions for installing the package itself. Note that some backends have their own dependencies which must be installed separately alongside your application; refer to the inner package README for more details.
From OpenUPM
Refer to the OpenUPM documentation:
The OpenUPM package page is located here.
From the Releases Page
See the Unity documentation for full details.
- Download the .tgz file from the latest release.
- Open the Unity Package Manager and hit the + button, then pick
Add package from tarball. - Select the downloaded .tgz file in the file prompt.
To update, repeat with the new .tgz.
From Git
See the Unity documentation for full details.
Via URL
- Open the Unity Package Manager and hit the + button, then select
Add package from git URL. - Paste in
https://github.com/TheNathannator/HIDrogen.git?path=/Packages/com.thenathannator.hidrogen#v0.5.3and hit Add.
To update, increment the version number at the end of the URL to the new version number and repeat these steps with the new URL. Alternatively, you can edit the URL listed in your manifest.json file as described in the Via Manifest section.
Via Manifest
In your Packages > manifest.json file, add the following line to your dependencies:
{
"dependencies": {
+ "com.thenathannator.hidrogen": "https://github.com/TheNathannator/HIDrogen.git?path=/Packages/com.thenathannator.hidrogen#v0.5.3"
}
}
To update, increment the version number at the end of the URL to the new version number. The package manager will automatically pull the new changes upon regaining focus.
Via Cloning
- Clone this repository to somewhere on your system.
- Go to the Unity Package Manager and hit the + button, then pick
Add package from disk. - Navigate to the
Packages>com.thenathannator.hidrogenfolder inside the clone and select thepackage.jsonfile.
To update, pull the latest commits. Unity will detect the changes automatically.
License
This project is licensed under the MIT license. See LICENSE.md for details.
