I want to use a touch panel as a basic input device, like a keyboard or mouse, but a touch panel.
Basic idea is, when a person touches the panel, any application listening to the panel's input should get the x, y coords of the event (touch).
Example application code that would use the input:
Code:
#include <PANEL_HEADER_FILE> // this would hold the C functions of the panel microcontroller.
#include <iostream>
int main() {
while ( true ) {
if ( panel_touch_happened() ) {
std::cout << "Touch happened at " << panel_get_x() << " - " << panel_get_y() << std::endl;
}
}
}
Executing the above example, whenever a person touches the touch panel, there will be console output like "Touch happened at 825 - 358".
And the above panel_* functions should be usable in any other C/C++ application, the same way.
That's all there is to it. It doesn't replace the mouse, it needs no display. It's just another independent way of providing input to the PC, like a mouse, keyboard, joystick and other periferical input devices.
Cheap and easy sounds best for now. Althought I presume those 3 panel_* functions from the above example would still exist on different touch panels and microcontrollers.
The ebay link I provided in the original post with the touch panel dev kit - couldn't I use that in order to build those 3 functions? I'm no good with electronics or microcontroller programming (but willing to learn, although I want to keep it at a minimum for now). I figured there'd be an easy way to do this.