Leonardo responding to mouse click to send signal to third device

Hello! I'm new to arduinos and am trying to bypass a broken driver. I would like to be able to have the arduino send a 5mV signal out to a 2nd computer when I press record on my first computer. I have Doric software running on the first computer and am capturing images with it, and just need to time stamp those recordings with the event recordings on the second.

I was working on just the first part of this, trying to have the arduino count the number of times I have clicked, and it doesn't seem to be registering mouse click events. This is the code I have running:

// Mouse - Version: Latest 
#include <Mouse.h>

void setup() {
 
  Serial.begin(9600);
  //initiate the Mouse library
  Mouse.begin();
}

void loop() {
  //a variable for checking the button's state
  int mouseState = 0;
  if (Mouse.isPressed()) {
    mouseState += 1;
  }

  //print out the current mouse button state
  Serial.print(mouseState);
  delay(10);
}

It's only printing zeros. Is there a specific place on screen that it can register click events? Or is it resetting to false too quickly to increase the count? I know this should be simple, I'm just not getting it. I have the arduino and computer linked through a USB connection, which I read should work.

Thanks!

The Mouse.h library does simulate a USB mouse to the connected computer. It cannot sense what you're doing on a real mouse.

Ah, I see. What should I be using instead? Thanks so much!

Ah, I see. What should I be using instead? Thanks so much!

That's not a job for hardware such as an Arduino, that's a job for a software on your first computer. Maybe I don't see the point as your description of the target is rather limited. Why a 5mV signal? How do you signal that? What types of computers are we talking about? Is that record button a button on the screen or a physical button?