Sending mouse click to background application

so I have a game running in the background and I want to simulate a mouse click to that gam which have running on a separate space on my Mac. I have used KM to send key presses to the background application successfully but I have trawled the internet how to send a mouse click.
when I leave the game in the background it thinks the mouse is where I left it when the window was open, I want to be able to simulate a mouse click to that position! please if there are any work around please help me out! thanks