How to fix input?

its just built that way i think, try the old input system there is a mouseX and mouseY event i believe which basically runs on tick