Unity version: 2019.3b3
Input system version: 0.9.6-preview
Joystick: Saitek Pro Flight X-55 Rhino (stick)
Axis: Rz (twist)
Debug is showing values being read correctly from Saitek Pro Flight joystick, however the “OnYaw” action callback in my code is not being fired. All other action callbacks work fine including “stick” from the same joystick.
public class PlayerControl : MonoBehaviour, InputMaster.IPlayerActions
{
private InputMaster input;
private Ship ship;
public void OnFlight(InputAction.CallbackContext context)
{
Vector2 v = context.ReadValue<Vector2>();
ship.Stick.x = -v.x;
ship.Stick.y = v.y;
}
public void OnYaw(InputAction.CallbackContext context)
{
ship.Stick.z = context.ReadValue<float>();
}