Hi.
Usually its the camera moving relative to the player.
Can you explain the use case.
if for example player needs to slow down when near camera edges, then you need some calculations, for example distance from camera center.
The axis you only use 0 to 1 and then have a variable for speed multiplier.
that speed multiplier you can then adjust depending on the distance from the camera for example.