#include #include "Mouse.h" int main() { Mouse m; int address, level, DPI_level; int default_dpi = 3200; m.init(); do { m.listDevices(); std::cout << "Enter device address: "; std::cin >> address; }while(!m.selectDevice(address)); std::cout<<"Current backlight level: "<<(int)m.getBackLightLevel()<> level; }while(m.setBackLightLevel(level) < 0); do { std::cout << "Select DPI(100-4000): "; std::cin >> DPI_level; if(DPI_level < 100 || DPI_level > 4000) std::cout<<"Bad number. Try again!\n"< 4000); printf("Setting it to %d, boss!\n", DPI_level); int error = m.setDPI(DPI_level/100-1); if(error != 0){ std::cout<<"Sorry boss, i cant... err: "<<(int)error<