[Common UI] How to disable the resetting mouse position and cursor visibility on switched to controller?

In common UI there is a feature that resets the position of the mouse cursor to middle of the screen when switched to a controller. And this also disables the cursor visibility.
My game is a topdown game and I use the cursor to determine gameplay events.
How can I disable this future so when switched to a controller Common UI won’t effect the cursor?