Skip to content

Change controller input from Unity(InputSystem) to Steam(InputAction)

License

Notifications You must be signed in to change notification settings

eviltwo/UnitySteamInputAdapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 that use this package!

adapter

Require packages

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

About

Change controller input from Unity(InputSystem) to Steam(InputAction)

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages