I want to write code that will allow me to send a command (not just video) from a computer to a TV, specifically, a command that will change the input. The code needs to be in C++, and the communication must be done through a usb cable.
I am currently using Qt to communicate with the ports, but the only port that I can communicate with is "com1". I was wondering, how do I get the names of the usb ports that devices like my mouse, usb sound adapter, etc are currently using?
And if there is any Qt code that lets me send commands to usb devices, that would be sick.