Don't ask me why but i want to take input from my usb mouse then record the position of the mouse on the y axis(vertical) then plot it on a line graph. How would i get input from a mouse, record the data per increment in time, then plot it on a graph something resembling sound waves on audacity?
Code so Far I literally made this 5 minutes ago and I still need to work out the flow. (warning i'm a n00b):
Code:
#include <iostream>
using namespace std;
void main(){
cout << "press enter to start";
cin.get();
mouse_in (void);
}
int mouse_in [1024](){
char 'end';
int graph = 0;
for (int range;cin >> 'end';graph++)
range = usb_in.yaxis
return mouse
}
int usb_in(){
return yaxis
}