Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-16T10:12:22.000Z (6 months ago)
- Last Synced: 2024-11-10T16:13:38.301Z (3 months ago)
- Topics: inputsystem, steam, steamworks, unity, unity3d, upm-package
- Language: C#
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- 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!
![adapter](https://github.com/user-attachments/assets/5bc4d381-531d-4b30-ba14-d36b3643ec96)
# 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
```