Initial commit

This commit is contained in:
Mateusz "Maxmati" Nowotyński
2015-04-18 19:54:36 +02:00
commit b7b30d5c54
6 changed files with 919 additions and 0 deletions

23
main.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <iostream>
#include "Mouse.h"
int main() {
Mouse m;
int address, level;
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()<<std::endl;
do {
std::cout << "Select backlight level(0-3):";
std::cin >> level;
}while(m.setBackLightLevel(level) < 0);
return 0;
}