For me it was the Device Simulator window , apperently to avoid conflicts it disables some inputs.
https://docs.unity3d.com/Packages/com.unity.inputsystem%401.4/manual/Debugging.html?#device-simulator
When Device Simulator window is in use, mouse and pen inputs on the simulated device screen are turned into touchscreen inputs. Device Simulator uses its own touchscreen device, which it creates and destroys together with the Device Simulator window.
To prevent conflicts between simulated touchscreen inputs and native mouse and pen inputs, Device Simulator disables all native mouse and pen devices.
Closing it resolved my issue. (For cross platform developpement I am using both touch and mouse inputs)