I am writing a program for educational purposes that counters the recoil in a FPS game. I came across a problem that I didn't know how to solve and was wondering if you could point me in the correct direction. My problem is, I would like to check if the left mouse button is down or up but not for the application itself. As I said above, this is to counter the recoil in a FPS; this means that I want to check weather I am shooting or not inside of the game. Some pseudo code is shown below:
Main:
while (GetLMBDown) do:
Cursor.Position = new Point(Cursor.Position.X, Cursor.Position.Y + 5);
Please tell me if you need anymore information and I'll try my best to supply you with it! Please note, this is a console application.