I am programming a platform-independent (Linux/Windows) application using C++ and some graphics libraries. I will be using a trackball for the user to be able to interact with my application. Motion of the trackball will manipulate the image onscreen in some way..
So right now I have a mouse with a trackball on it, but will soon be purchasing simply a panel-mount industrial trackball.
What is the first step I need to take in order to program this device? Do I need to program a driver? Or if it comes with a drive or is compatible with the driver I have, then how do I detect this device and get output from it? Do these devices normally come with drivers??
Should I be doing X programming or Win32 programming to do this? Or can I call a library in C++ which detects IO?
I think my trackball device will be attached to a serial port, and possibly a USB
(Also if you have any suggestions on books/sites taht I should look into - that would be great..)