https://github.com/eviltwo/unitysteaminputadapter
Change controller input from Unity(InputSystem) to Steam(InputAction)
https://github.com/eviltwo/unitysteaminputadapter
inputsystem steam steamworks unity unity3d upm-package
Last synced: 1 day ago
JSON representation
Change controller input from Unity(InputSystem) to Steam(InputAction)
- Host: GitHub
- URL: https://github.com/eviltwo/unitysteaminputadapter
- Owner: eviltwo
- License: mit
- Created: 2024-07-02T13:17:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-27T03:09:29.000Z (about 1 year ago)
- Last Synced: 2025-02-13T22:49:04.283Z (12 months ago)
- Topics: inputsystem, steam, steamworks, unity, unity3d, upm-package
- Language: C#
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Steam Input Adapter
Change controller input from Unity(InputSystem) to Steam(InputAction). You can get SteamInputActionOrigin from InputControl.
This package is useful if you want to use the InputSystem but partially use SteamInput.
For example, you can generate button information to pass to `SteamInput.GetGlyphPNGForActionOrigin()`.
Check out [InputGlyphs](https://github.com/eviltwo/InputGlyphs) that use this package!

# Require packages
- InputSystem (Unity)
- [Steamworks.NET](https://github.com/rlabrecque/Steamworks.NET)
# Install with UPM
```
https://github.com/eviltwo/UnitySteamInputAdapter.git?path=UnitySteamInputAdapter/Assets/UnitySteamInputAdapter
```
# Code example
```
var unityInputControl = _inputActionReference.action.controls[0];
var steamInputAction = SteamInputAdapter.GetSteamInputAction(unityInputControl);
Debug.Log($"{unityInputControl.name}: {steamInputAction}");
// Output
// buttonNorth: k_EInputActionOrigin_PS5_Triangle
```