E.g.: public static class CustomInput { public static bool GetButton() { return false; }
public static float GetAxis() { return 0; } }
Naturally, you need to return your custom input values instead of just false/0 in those functions.
In the input key's setup: - set Input Origin to Custom - set Class Name to CustomInput (i.e. the name of the class) - set the button function name to GetButton - set the axis function name to GetAxis
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!
public static class CustomInput
{
public static bool GetButton()
{
return false;
}
public static float GetAxis()
{
return 0;
}
}
Naturally, you need to return your custom input values instead of just false/0 in those functions.
In the input key's setup:
- set Input Origin to Custom
- set Class Name to CustomInput (i.e. the name of the class)
- set the button function name to GetButton
- set the axis function name to GetAxis
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!