Hey thanks for replying i am not sure it is my mouse.
I tested another game that was created with the same software UE4 and that also didn't let me use the Y or X axis of my mouse.The right,middle and left buttons of my mouse did work however.
Processor Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz, 3193 Mhz, 4 Core(s), 8 Logical Processor(s)
Name NVIDIA Quadro 4000
Installed Physical Memory (RAM) 12.0 GB
Logitech RX1000 mouse using HID_Compliant Mouse driver.
Thanks for replying and let me know if more info is needed