My input axis refuses to work properly on mac,How can I fix input axis on osx?

In my project settings I set my horizontal and vertical movement to the correct axis to work with my controller’s d-pad. However when I press left on the d-pad, my input reads left+down and when I press right my input reads right+up. In other words

when I press d-pad left I get

“-1,-1
UnityEngine.Debug:Log (object)
InputRead:Update () (at Assets/InputRead.cs:17)”

And when I press d-pad right I get

“1,1
UnityEngine.Debug:Log (object)
InputRead:Update () (at Assets/InputRead.cs:17)”

I have tried 3 different controllers - all have the same problem. Using OSX 10.14.6 and have tried Unity 2021.3.5f and 2019.4.39f1

Any help would be appreciated ,In my project settings I set my horizontal and vertical movement to the correct axis to work with my controller’s d-pad. However when I press left on the d-pad, my input reads left+down and when I press right my input reads right+up. In other words

when I press d-pad left I get

“-1,-1
UnityEngine.Debug:Log (object)
InputRead:Update () (at Assets/InputRead.cs:17)”

And when I press d-pad right I get

“1,1
UnityEngine.Debug:Log (object)
InputRead:Update () (at Assets/InputRead.cs:17)”

I have tried 3 different controllers - all have the same problem. Using OSX 10.14.6 and have tried Unity 2021.3.5f and 2019.4.39f1

Any help would be appreciated

Using this as reference and assuming using the old input system:

You can’t use an axis approach. You have to use individual buttons or joysticks buttons.

I would also suggest using, something like this:

if(Application.platform == RuntimePlatform.OSXPlayer) //macOS user
{
 // check macos buttons
}
else if(Application.platform == RuntimePlatform.WindowsPlayer) //windows user
{
//check windows buttons
}