Since input keys are now their own assets, you can also simply reference them as an asset (InputKeyAsset).
If you've got an asset, you can use these static functions to get button/axis input: bool button = InputKey.GetButton(asset); float axis = InputKey.GetAxis(asset); They also handle checking if the asset is null, so you can just fire them without worrying about that :)
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you've got an asset, you can use these static functions to get button/axis input:
bool button = InputKey.GetButton(asset);
float axis = InputKey.GetAxis(asset);
They also handle checking if the asset is null, so you can just fire them without worrying about that :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
var inputKeyAssetHorizontal = GamingIsLove.Makinom.Maki.InputKeys.GetAsset(4);
float axis = GamingIsLove.Makinom.InputKey.GetAxis(inputKeyAssetHorizontal);