Mouse position and movement inverted on a laptop (19.04)

I just installed Ubuntu 19.04 on my laptop, which has relatively old AMD GPU (Radeon HD 5650). Now my cursor is completely inverted. I did try rotating the screen via xrandr, installing oibaf’s drivers, but no result. Is there any way possible to fix this on 19.04?