Hello everyone, Iv been making games that are always limited to the keyboard inputs of Free Pascal, and I decided it's time to move on! lol

I have tried most of the procedures and functions that the manual describes (to get mouse buttons, check events, show and hide mouse, getx and gety, and to position cursor wherever in the screen) but only some of them worked. The most important ones, getmousex and getmousey did not work and my variables x and y were constantly set to 0. I also noticed that when checking the mouse buttons it only recognised when I pressed the buttons, not when I released them. Would anyone be kind enough to help me solve those problems, please I would really appreciate it so that I can make user-friendlier games
Thank you