1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2026-03-14 04:16:55 +00:00

Add new arg -tuk for testing unsuported keyboard

This commit is contained in:
2017-05-06 22:41:08 +02:00
parent 11865ca560
commit ebb41b8037
5 changed files with 75 additions and 18 deletions

View File

@@ -21,6 +21,15 @@ LedKeyboard::~LedKeyboard() {
}
bool LedKeyboard::overrideKeyboard(uint16_t vendorID, uint16_t productID, KeyboardModel model) {
if(model==KeyboardModel::unknown) return false;
SupportedKeyboards = {
{ vendorID, productID, (u_int16_t)model }
};
return true;
}
vector<LedKeyboard::DeviceInfo> LedKeyboard::listKeyboards() {
vector<LedKeyboard::DeviceInfo> deviceList;